forked from Sharvin26/TodoApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,323 additions
and
175 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.