From 3b63a7c9d5f9fd3d4fcd1b9bc72af2227c2b2d3d Mon Sep 17 00:00:00 2001 From: ayeshrodz Date: Sun, 10 Jan 2021 01:26:10 +0530 Subject: [PATCH] clearing up search results --- .eslintcache | 2 +- src/components/SearchResult/SearchResult.js | 16 ++++++---------- src/components/about/About.js | 1 - src/components/home/Home.js | 1 - src/components/profile/Profile.js | 3 +-- src/components/review/Review.js | 1 - 6 files changed, 8 insertions(+), 16 deletions(-) diff --git a/.eslintcache b/.eslintcache index 68a9c18..0a3b51d 100644 --- a/.eslintcache +++ b/.eslintcache @@ -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
\r\n {/* Navigation Bar Component */}\r\n
\r\n {/* Navigation Bar Component End */}\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n\r\n \r\n
\r\n \r\n
\r\n

Colombo To Badulla

\r\n \r\n
\r\n
\r\n
\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"] \ No newline at end of file +[{"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"] \ No newline at end of file diff --git a/src/components/SearchResult/SearchResult.js b/src/components/SearchResult/SearchResult.js index ba6d1a8..456eb5d 100644 --- a/src/components/SearchResult/SearchResult.js +++ b/src/components/SearchResult/SearchResult.js @@ -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 (
- {/* Navigation Bar Component */} -
- {/* Navigation Bar Component End */}
@@ -38,12 +34,12 @@ function SearchResult() { Search - - ); } diff --git a/src/components/about/About.js b/src/components/about/About.js index c6d868b..2010f9b 100644 --- a/src/components/about/About.js +++ b/src/components/about/About.js @@ -1,5 +1,4 @@ import React from "react"; -import Header from "../header/Header"; function About() { return ( diff --git a/src/components/home/Home.js b/src/components/home/Home.js index e542834..4a0a9b0 100644 --- a/src/components/home/Home.js +++ b/src/components/home/Home.js @@ -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"; diff --git a/src/components/profile/Profile.js b/src/components/profile/Profile.js index c9fe2fb..9826dc1 100644 --- a/src/components/profile/Profile.js +++ b/src/components/profile/Profile.js @@ -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() { diff --git a/src/components/review/Review.js b/src/components/review/Review.js index 8d3c8c1..67cf85a 100644 --- a/src/components/review/Review.js +++ b/src/components/review/Review.js @@ -1,6 +1,5 @@ import React from "react"; import "./Review.css"; -import Header from "../header/Header"; function Review() { return (