-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
50 lines (46 loc) · 1.32 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, Switch } from 'react-router-dom';
import { createBrowserHistory } from 'history';
import { Provider } from 'mobx-react';
import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles';
import blue from 'material-ui/colors/blue';
import grey from 'material-ui/colors/grey';
import 'typeface-roboto';
import models from './models';
// Styles
// import "semantic-ui-css/semantic.css";
import './assets/css/index.css';
// Modules
import CheckAccountRoute from './containers/Home/_CheckAccount';
import Home from './containers/Home';
import Explorer from './containers/Explorer';
import Guide from './containers/Guide';
const history = createBrowserHistory();
const theme = createMuiTheme({
palette: {
primary: {
main: blue.A700,
},
secondary: grey,
},
typography: {
button: {
textTransform: 'none',
},
},
});
ReactDOM.render(
<Provider {...models}>
<MuiThemeProvider theme={theme}>
<Router history={history}>
<Switch>
<Route path="/guide" component={Guide} />
<Route path="/explorer" component={Explorer} />
<CheckAccountRoute path="/" component={Home} />
</Switch>
</Router>
</MuiThemeProvider>
</Provider>,
document.getElementById('root'),
);