2017-07-27 20:31:59 -04:00
|
|
|
// Application styles must come first in order, to allow for overrides
|
|
|
|
import 'assets/styles/etherwallet-master.less';
|
2017-07-31 18:14:30 -05:00
|
|
|
import 'font-awesome/scss/font-awesome.scss';
|
2017-10-17 00:01:28 -04:00
|
|
|
import 'sass/styles.scss';
|
2017-06-23 20:26:08 -05:00
|
|
|
import React from 'react';
|
|
|
|
import { render } from 'react-dom';
|
2017-10-13 17:50:34 -07:00
|
|
|
import Root from './Root';
|
2017-09-28 22:09:01 -04:00
|
|
|
import createHistory from 'history/createBrowserHistory';
|
2017-09-24 19:06:28 -07:00
|
|
|
import { configuredStore } from './store';
|
2017-07-05 18:28:54 -05:00
|
|
|
|
2017-09-28 22:09:01 -04:00
|
|
|
const history = createHistory();
|
2017-04-12 00:04:27 -05:00
|
|
|
|
2017-10-13 17:50:34 -07:00
|
|
|
const appEl = document.getElementById('app');
|
|
|
|
|
|
|
|
render(<Root store={configuredStore} history={history} />, appEl);
|
2017-04-12 00:04:27 -05:00
|
|
|
|
|
|
|
if (module.hot) {
|
2017-09-24 19:06:28 -07:00
|
|
|
module.hot.accept('reducers', () =>
|
|
|
|
configuredStore.replaceReducer(require('reducers'))
|
2017-07-02 12:55:58 -05:00
|
|
|
);
|
2017-10-13 17:50:34 -07:00
|
|
|
|
|
|
|
module.hot.accept('./Root', () => {
|
|
|
|
render(<Root store={configuredStore} history={history} />, appEl);
|
|
|
|
});
|
2017-04-12 00:04:27 -05:00
|
|
|
}
|