-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
47 lines (44 loc) · 1.1 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import React from 'react';
import { BrowserRouter, Switch, Route } from 'react-router-dom'
import { createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles'
import Header from './components/Header/Header';
import { CssBaseline } from '@material-ui/core';
import Footer from './components/Footer/Footer';
import Home from './components/pages/Home/Home';
import Payment from './components/pages/Payment/Payment';
import './index.css';
const theme = createMuiTheme({
palette: {
type: 'dark',
primary: {
light: '#3A3A3A',
main: '#252525'
},
secondary: {
main: '#D50000'
},
background: {
default: '#252525',
},
text: {
primary: '#FEFEFE',
secondary: '#252525'
},
}
})
function App() {
return (
<MuiThemeProvider theme={theme}>
<CssBaseline />
<BrowserRouter>
<Header />
<Switch>
<Route exact path="/" component={Home} />
<Route exact path="/payment" component={Payment} />
</Switch>
<Footer />
</BrowserRouter>
</MuiThemeProvider>
);
}
export default App;