-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
33 lines (31 loc) · 883 Bytes
/
index.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
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import 'typeface-roboto';
import {BrowserRouter as Router} from 'react-router-dom'
import {MuiThemeProvider,createMuiTheme} from '@material-ui/core/styles';
const theme = createMuiTheme({
palette: {
primary: {
light: '#6ec6ff',
main: '#2196F3',
dark: '#0069c0',
contrastText: '#FFF',
},
secondary: {
light: '#ff616f',
main: '#ff1744',
dark: '#c4001d',
contrastText: '#FFF',
},
},
});
ReactDOM.render(
<MuiThemeProvider theme={theme}>
<Router>
<App/>
</Router>
</MuiThemeProvider>, document.getElementById('root'));
registerServiceWorker();