Skip to content

Commit

Permalink
HOTFIX: Changes necessary to deploy React build (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeMoosery authored Mar 28, 2020
1 parent 64a13ba commit fe9c766
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
content="Corona Tracker"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
Expand Down
6 changes: 5 additions & 1 deletion client/src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ function App (props) {

{/* ADD/EDIT ROUTES WITH THEIR COMPONENTS HERE: */}
<PrivateRoute path="/signup" authed={authenticated} />
<PrivateRoute path="/symptomsurvey" authed={authenticated} component={() => <SymptomsTracker />} />
<PrivateRoute
path="/symptomsurvey"
authed={authenticated}
component={() => <SymptomsTracker />}
/>
<PrivateRoute path="/log" authed={authenticated} />
<PrivateRoute path="/healthlog" authed={authenticated} />
<PrivateRoute
Expand Down
5 changes: 4 additions & 1 deletion client/src/components/MyHealthLog.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import React from 'react';
import Button from '@material-ui/core/Button';
import { Link } from 'react-router-dom';

export default function MyHealthLog() {
return (
<Button color="secondary"variant='contained' href='/symptomsurvey'>Take a survey</Button>
<Link to="/symptomsurvey">
<Button color="secondary" variant='contained'>Take a survey</Button>
</Link>
)
}

0 comments on commit fe9c766

Please sign in to comment.