diff --git a/.eslintcache b/.eslintcache index ad79114..13f039e 100644 --- a/.eslintcache +++ b/.eslintcache @@ -1 +1 @@ -[{"/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/index.js":"1","/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/components/NavBar.js":"2","/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/components/HomePage.js":"3","/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/redux/actions.js":"4","/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/reportWebVitals.js":"5","/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/components/TrailShow.js":"6","/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/components/LoginForm.js":"7","/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/containers/TrailsList.js":"8","/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/components/Trail.js":"9","/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/components/SearchForm.js":"10","/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/components/Profile.js":"11","/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/components/TrailForm.js":"12"},{"size":866,"mtime":1609951773218,"results":"13","hashOfConfig":"14"},{"size":1753,"mtime":1609971700087,"results":"15","hashOfConfig":"14"},{"size":5274,"mtime":1610062934027,"results":"16","hashOfConfig":"14"},{"size":4338,"mtime":1609951773221,"results":"17","hashOfConfig":"14"},{"size":362,"mtime":1608848533095,"results":"18","hashOfConfig":"14"},{"size":2847,"mtime":1610037007108,"results":"19","hashOfConfig":"14"},{"size":1224,"mtime":1610037561329,"results":"20","hashOfConfig":"14"},{"size":3499,"mtime":1610050376293,"results":"21","hashOfConfig":"14"},{"size":367,"mtime":1610044126424,"results":"22","hashOfConfig":"14"},{"size":1160,"mtime":1610047600221,"results":"23","hashOfConfig":"14"},{"size":7569,"mtime":1610065212668,"results":"24","hashOfConfig":"14"},{"size":2391,"mtime":1610062689055,"results":"25","hashOfConfig":"14"},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},"6dmgbn",{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"37","messages":"38","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"39"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"44","messages":"45","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"46","messages":"47","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/index.js",[],["52","53"],"/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/components/NavBar.js",[],"/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/components/HomePage.js",[],"/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/redux/actions.js",[],"/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/reportWebVitals.js",[],"/Users/juliazolotarev/Documents/Flatiron/assignments/Mod-4/trails-with-friends/trails-with-friends-frontend/src/components/TrailShow.js",["54","55"],"import React from 'react'\nimport { addUserTrail } from '../redux/actions'\nimport {connect} from 'react-redux'\n// import REACT_APP_GOOGLE_API_KEY from '../.env'\n\nclass TrailShow extends React.Component {\n\n state = {\n clicked: false\n }\n\n addUserTrail = () => {\n let date = new Date()\n this.props.addUserTrail({ \n trail_id: this.props.trailObj.id,\n user_id: this.props.user.user.id,\n date: date\n })\n window.alert(\"Trail added to your list!\")\n }\n\n clickDirections = () => {\n this.setState({clicked: !this.state.clicked})\n }\n\n hours = (mins) => {\n let hours = Math.floor(mins / 60) \n let minutes = mins % 60\n if (hours === 1) {\n return `${hours} hour and ${minutes} minutes to complete` \n } else if (minutes === 1) {\n return `${hours} hours and ${minutes} minute to complete` \n } else {\n return `${hours} hours and ${minutes} minutes to complete` \n }\n \n }\n \n render(){\n console.log(this.props)\n return (\n