-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
executable file
·33 lines (29 loc) · 998 Bytes
/
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
/* index.jsx */
import "babel-polyfill"
import React, { Component } from 'react';
import { render } from 'react-dom';
import {Provider} from 'react-redux'
import PriemRootReducer from './components/reducers'
import DrawerMainMenu from './components/common/Drawer';
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
import WebFontLoader from 'webfontloader';
import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import {networkService} from "./components/common/networkService";
class App extends Component {
getChildContext() {
return { muiTheme: getMuiTheme(baseTheme) };
}
render() {
return (
<Provider store={PriemRootReducer}>
<DrawerMainMenu localStorage={localStorage["priemUser"]} />
</Provider>
);
}
}
App.childContextTypes = {
muiTheme: React.PropTypes.object.isRequired,
};
render( <App />,document.getElementById('app'));