Skip to content

Commit

Permalink
clearing up search results
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshrodz committed Jan 9, 2021
1 parent 2814000 commit 3b63a7c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .eslintcache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\index.js":"1","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\App.js":"2","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\NotFound.js":"3","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\auth\\AuthMain.js":"4","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\profile\\Profile.js":"5","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\home\\Home.js":"6","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\review\\Review.js":"7","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\about\\About.js":"8","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\Landing\\Landing.js":"9","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\SearchResult\\SearchResult.js":"10","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\auth\\Signup.js":"11","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\contexts\\AuthContext.js":"12","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\header\\Header.js":"13","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\firebase.js":"14"},{"size":255,"mtime":1607747487817,"results":"15","hashOfConfig":"16"},{"size":1268,"mtime":1610221562207,"results":"17","hashOfConfig":"16"},{"size":22297,"mtime":1609398099404,"results":"18","hashOfConfig":"16"},{"size":553,"mtime":1609360599772,"results":"19","hashOfConfig":"16"},{"size":2554,"mtime":1610221083758,"results":"20","hashOfConfig":"16"},{"size":1108,"mtime":1610219340073,"results":"21","hashOfConfig":"16"},{"size":232,"mtime":1610221066444,"results":"22","hashOfConfig":"16"},{"size":209,"mtime":1610221105642,"results":"23","hashOfConfig":"16"},{"size":848,"mtime":1610217775626,"results":"24","hashOfConfig":"16"},{"size":1547,"mtime":1610218443539,"results":"25","hashOfConfig":"16"},{"size":2113,"mtime":1610220966254,"results":"26","hashOfConfig":"16"},{"size":906,"mtime":1608052622062,"results":"27","hashOfConfig":"16"},{"size":1328,"mtime":1610217775630,"results":"28","hashOfConfig":"16"},{"size":590,"mtime":1608049660052,"results":"29","hashOfConfig":"16"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"1mbzqh7",{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"39","messages":"40","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"41","messages":"42","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"43","messages":"44","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"45","messages":"46","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"49","messages":"50","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"51","usedDeprecatedRules":"32"},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\index.js",[],["60","61"],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\App.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\NotFound.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\auth\\AuthMain.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\profile\\Profile.js",["62","63","64","65"],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\home\\Home.js",["66"],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\review\\Review.js",["67"],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\about\\About.js",["68"],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\Landing\\Landing.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\SearchResult\\SearchResult.js",["69"],"import React from \"react\";\r\nimport Header from \"../header/Header\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport \"./SearchResult.css\";\r\nimport Form from \"react-bootstrap/Form\";\r\nimport ArrowDropDownIcon from \"@material-ui/icons/ArrowDropDown\";\r\nimport SearchLogo from \"../Images/search-result.jpeg\"\r\n\r\nfunction SearchResult() {\r\n return (\r\n <div>\r\n {/* Navigation Bar Component */}\r\n <Header />\r\n {/* Navigation Bar Component End */}\r\n <Form className=\"SearchResult-Form\">\r\n <div className=\"input-search-result\">\r\n <input placeholder=\"From\" />\r\n <ArrowDropDownIcon className=\"dropdown-icon\" />\r\n </div>\r\n <div className=\"input-search-result\">\r\n <input placeholder=\"To\" />\r\n <ArrowDropDownIcon className=\"dropdown-icon\" />\r\n </div>\r\n <div className=\"DatePicker-Result\">\r\n <TextField\r\n id=\"date\"\r\n label=\"Date\"\r\n type=\"date\"\r\n className=\"DatePicker-Result\"\r\n defaultValue=\"2017-05-24\"\r\n InputLabelProps={{\r\n shrink: true,\r\n }}\r\n />\r\n </div>\r\n\r\n <button type=\"button\" class=\"btn-search btn-primary\">\r\n Search\r\n </button>\r\n </Form>\r\n <a className = \"card-wrapper\">\r\n <div className = \"text-inside\">\r\n <p>Colombo To Badulla</p>\r\n <img src = {SearchLogo} className = \"Search-Logo\"/>\r\n </div>\r\n </a>\r\n </div>\r\n );\r\n}\r\n\r\nexport default SearchResult;\r\n","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\auth\\Signup.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\contexts\\AuthContext.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\header\\Header.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\firebase.js",[],{"ruleId":"70","replacedBy":"71"},{"ruleId":"72","replacedBy":"73"},{"ruleId":"74","severity":1,"message":"75","line":3,"column":8,"nodeType":"76","messageId":"77","endLine":3,"endColumn":14},{"ruleId":"74","severity":1,"message":"78","line":4,"column":10,"nodeType":"76","messageId":"77","endLine":4,"endColumn":16},{"ruleId":"74","severity":1,"message":"79","line":4,"column":23,"nodeType":"76","messageId":"77","endLine":4,"endColumn":34},{"ruleId":"74","severity":1,"message":"80","line":4,"column":36,"nodeType":"76","messageId":"77","endLine":4,"endColumn":44},{"ruleId":"74","severity":1,"message":"75","line":2,"column":8,"nodeType":"76","messageId":"77","endLine":2,"endColumn":14},{"ruleId":"74","severity":1,"message":"75","line":3,"column":8,"nodeType":"76","messageId":"77","endLine":3,"endColumn":14},{"ruleId":"74","severity":1,"message":"75","line":2,"column":8,"nodeType":"76","messageId":"77","endLine":2,"endColumn":14},{"ruleId":"74","severity":1,"message":"81","line":7,"column":8,"nodeType":"76","messageId":"77","endLine":7,"endColumn":18},"no-native-reassign",["82"],"no-negated-in-lhs",["83"],"no-unused-vars","'Header' is defined but never used.","Identifier","unusedVar","'Navbar' is defined but never used.","'NavDropdown' is defined but never used.","'CardDeck' is defined but never used.","'SearchLogo' is defined but never used.","no-global-assign","no-unsafe-negation"]
[{"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\index.js":"1","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\App.js":"2","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\NotFound.js":"3","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\auth\\AuthMain.js":"4","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\profile\\Profile.js":"5","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\home\\Home.js":"6","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\review\\Review.js":"7","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\about\\About.js":"8","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\Landing\\Landing.js":"9","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\SearchResult\\SearchResult.js":"10","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\auth\\Signup.js":"11","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\contexts\\AuthContext.js":"12","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\header\\Header.js":"13","C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\firebase.js":"14"},{"size":255,"mtime":1607747487817,"results":"15","hashOfConfig":"16"},{"size":1268,"mtime":1610221562207,"results":"17","hashOfConfig":"16"},{"size":22297,"mtime":1609398099404,"results":"18","hashOfConfig":"16"},{"size":553,"mtime":1609360599772,"results":"19","hashOfConfig":"16"},{"size":2483,"mtime":1610221911897,"results":"20","hashOfConfig":"16"},{"size":1068,"mtime":1610221949495,"results":"21","hashOfConfig":"16"},{"size":192,"mtime":1610221911897,"results":"22","hashOfConfig":"16"},{"size":169,"mtime":1610221911897,"results":"23","hashOfConfig":"16"},{"size":848,"mtime":1610217775626,"results":"24","hashOfConfig":"16"},{"size":1406,"mtime":1610222089309,"results":"25","hashOfConfig":"16"},{"size":2113,"mtime":1610220966254,"results":"26","hashOfConfig":"16"},{"size":906,"mtime":1608052622062,"results":"27","hashOfConfig":"16"},{"size":1328,"mtime":1610217775630,"results":"28","hashOfConfig":"16"},{"size":590,"mtime":1608049660052,"results":"29","hashOfConfig":"16"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"1mbzqh7",{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"39","messages":"40","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\index.js",[],["59","60"],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\App.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\NotFound.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\auth\\AuthMain.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\profile\\Profile.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\home\\Home.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\review\\Review.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\about\\About.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\Landing\\Landing.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\SearchResult\\SearchResult.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\auth\\Signup.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\contexts\\AuthContext.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\components\\header\\Header.js",[],"C:\\Users\\Ayesh\\Desktop\\ECU Final Project\\Project\\train-ticketing-system\\src\\firebase.js",[],{"ruleId":"61","replacedBy":"62"},{"ruleId":"63","replacedBy":"64"},"no-native-reassign",["65"],"no-negated-in-lhs",["66"],"no-global-assign","no-unsafe-negation"]
16 changes: 6 additions & 10 deletions src/components/SearchResult/SearchResult.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
import React from "react";
import Header from "../header/Header";
import TextField from "@material-ui/core/TextField";
import "./SearchResult.css";
import Form from "react-bootstrap/Form";
import ArrowDropDownIcon from "@material-ui/icons/ArrowDropDown";
import SearchLogo from "../Images/search-result.jpeg"
import SearchLogo from "../Images/search-result.jpeg";

function SearchResult() {
return (
<div>
{/* Navigation Bar Component */}
<Header />
{/* Navigation Bar Component End */}
<Form className="SearchResult-Form">
<div className="input-search-result">
<input placeholder="From" />
Expand All @@ -38,12 +34,12 @@ function SearchResult() {
Search
</button>
</Form>
<a className = "card-wrapper">
<div className = "text-inside">
<p>Colombo To Badulla</p>
<img src = {SearchLogo} className = "Search-Logo"/>
<div className="card-wrapper">
<div className="text-inside">
<p>Colombo To Badulla</p>
<img src={SearchLogo} alt="" className="Search-Logo" />
</div>
</a>
</div>
</div>
);
}
Expand Down
1 change: 0 additions & 1 deletion src/components/about/About.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react";
import Header from "../header/Header";

function About() {
return (
Expand Down
1 change: 0 additions & 1 deletion src/components/home/Home.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react";
import Header from "../header/Header";
import Form from "react-bootstrap/Form";
import "./Home.css";
import TextField from "@material-ui/core/TextField";
Expand Down
3 changes: 1 addition & 2 deletions src/components/profile/Profile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import "./Profile.css";
import Header from "../header/Header";
import { Navbar, Nav, NavDropdown, CardDeck, CardGroup } from "react-bootstrap";
import { Nav, CardGroup } from "react-bootstrap";
import { Card } from "react-bootstrap";

function Profile() {
Expand Down
1 change: 0 additions & 1 deletion src/components/review/Review.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react";
import "./Review.css";
import Header from "../header/Header";

function Review() {
return (
Expand Down

0 comments on commit 3b63a7c

Please sign in to comment.