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-10-17 04:01:28 +00:00
|
|
|
import 'sass/styles.scss';
|
2017-06-24 01:26:08 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { render } from 'react-dom';
|
2017-10-14 00:50:34 +00:00
|
|
|
import Root from './Root';
|
2017-09-29 02:09:01 +00:00
|
|
|
import createHistory from 'history/createBrowserHistory';
|
2017-09-25 02:06:28 +00:00
|
|
|
import { configuredStore } from './store';
|
2017-12-14 23:47:11 +00:00
|
|
|
import consoleAdvertisement from './utils/consoleAdvertisement';
|
2017-07-05 23:28:54 +00:00
|
|
|
|
2017-09-29 02:09:01 +00:00
|
|
|
const history = createHistory();
|
2017-04-12 05:04:27 +00:00
|
|
|
|
2017-10-14 00:50:34 +00:00
|
|
|
const appEl = document.getElementById('app');
|
|
|
|
|
|
|
|
render(<Root store={configuredStore} history={history} />, appEl);
|
2017-04-12 05:04:27 +00:00
|
|
|
|
|
|
|
if (module.hot) {
|
2017-12-14 23:47:11 +00:00
|
|
|
module.hot.accept('reducers', () => configuredStore.replaceReducer(require('reducers')));
|
2017-10-14 00:50:34 +00:00
|
|
|
|
|
|
|
module.hot.accept('./Root', () => {
|
|
|
|
render(<Root store={configuredStore} history={history} />, appEl);
|
|
|
|
});
|
2017-04-12 05:04:27 +00:00
|
|
|
}
|
2017-12-14 23:47:11 +00:00
|
|
|
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
|
|
consoleAdvertisement();
|
|
|
|
}
|