Skip to content

Commit

Permalink
Completed the Todo Component
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharvin26 committed Apr 7, 2020
1 parent 2b20778 commit 3799980
Show file tree
Hide file tree
Showing 8 changed files with 1,323 additions and 175 deletions.
922 changes: 893 additions & 29 deletions functions/package-lock.json

Large diffs are not rendered by default.

106 changes: 5 additions & 101 deletions view/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"dayjs": "^1.8.23",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.1"
Expand Down
37 changes: 25 additions & 12 deletions view/src/App.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
import React from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';

import { ThemeProvider as MuiThemeProvider } from '@material-ui/core/styles';
import createMuiTheme from '@material-ui/core/styles/createMuiTheme';
import login from './pages/login';
import signup from './pages/signup';
import home from './pages/home';

const theme = createMuiTheme({
palette: {
primary: {
light: '#33c9dc',
main: '#FF5722',
dark: '#d50000',
contrastText: '#fff'
}
}
});

function App() {
return (
<Router>
<div>
<Switch>
<Route exact path="/" component={home}/>
<Route exact path="/login" component={login}/>
<Route exact path="/signup" component={signup}/>
</Switch>
</div>
</Router>
);
return (
<MuiThemeProvider theme={theme}>
<Router>
<div>
<Switch>
<Route exact path="/" component={home} />
<Route exact path="/login" component={login} />
<Route exact path="/signup" component={signup} />
</Switch>
</div>
</Router>
</MuiThemeProvider>
);
}

export default App;
Loading

0 comments on commit 3799980

Please sign in to comment.