Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up
Find file
Copy path
refactoring-react-legacy-code/client/src/containers/App/index.js
Find file
Copy path
Fetching contributors…
| import React from "react"; | |
| import CssBaseline from "@material-ui/core/CssBaseline"; | |
| import { Provider as ReduxProvider } from "react-redux"; | |
| import { BrowserRouter as Router } from "react-router-dom"; | |
| import { MuiThemeProvider, createMuiTheme } from "@material-ui/core/styles"; | |
| import yellow from "@material-ui/core/colors/yellow"; | |
| import purple from "@material-ui/core/colors/purple"; | |
| import Routes from "../Routes"; | |
| import store from "../../store"; | |
| const theme = createMuiTheme({ | |
| typography: { | |
| useNextVariants: true | |
| }, | |
| palette: { | |
| primary: purple, | |
| secondary: yellow | |
| } | |
| }); | |
| const App = () => ( | |
| <ReduxProvider store={store}> | |
| <> | |
| <CssBaseline /> | |
| <MuiThemeProvider theme={theme}> | |
| <Router> | |
| <Routes /> | |
| </Router> | |
| </MuiThemeProvider> | |
| </> | |
| </ReduxProvider> | |
| ); | |
| export default App; |