2017-07-28 00:31:59 +00:00
|
|
|
// Application styles must come first in order, to allow for overrides
|
|
|
|
import 'assets/styles/etherwallet-master.less';
|
2017-07-31 23:14:30 +00:00
|
|
|
import 'font-awesome/scss/font-awesome.scss';
|
2017-06-24 01:26:08 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { render } from 'react-dom';
|
2017-07-05 23:28:54 +00:00
|
|
|
import { syncHistoryWithStore } from 'react-router-redux';
|
2017-09-25 02:06:28 +00:00
|
|
|
import 'sass/styles.scss';
|
|
|
|
import { Root } from './components';
|
|
|
|
import { history, Routing } from './routing';
|
|
|
|
import { configuredStore } from './store';
|
2017-07-05 23:28:54 +00:00
|
|
|
|
2017-09-25 02:06:28 +00:00
|
|
|
const renderRoot = RouteToRender => {
|
|
|
|
const syncedHistory = syncHistoryWithStore(history, configuredStore);
|
2017-06-24 01:26:08 +00:00
|
|
|
render(
|
2017-09-25 02:06:28 +00:00
|
|
|
<RouteToRender
|
2017-09-18 06:31:52 +00:00
|
|
|
key={Math.random()}
|
|
|
|
routes={Routing}
|
|
|
|
history={syncedHistory}
|
2017-09-25 02:06:28 +00:00
|
|
|
store={configuredStore}
|
2017-09-18 06:31:52 +00:00
|
|
|
/>,
|
2017-06-24 01:26:08 +00:00
|
|
|
document.getElementById('app')
|
|
|
|
);
|
2017-04-12 05:04:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
renderRoot(Root);
|
|
|
|
|
|
|
|
if (module.hot) {
|
2017-09-25 02:06:28 +00:00
|
|
|
module.hot.accept('reducers', () =>
|
|
|
|
configuredStore.replaceReducer(require('reducers'))
|
2017-07-02 17:55:58 +00:00
|
|
|
);
|
2017-04-12 05:04:27 +00:00
|
|
|
}
|