2017-07-27 17:31:59 -07:00
|
|
|
// Application styles must come first in order, to allow for overrides
|
|
|
|
import 'assets/styles/etherwallet-master.less';
|
2017-07-31 16:14:30 -07:00
|
|
|
import 'font-awesome/scss/font-awesome.scss';
|
2017-10-16 21:01:28 -07:00
|
|
|
import 'sass/styles.scss';
|
2017-12-15 18:53:27 -08:00
|
|
|
import 'babel-polyfill';
|
|
|
|
import 'whatwg-fetch';
|
2017-06-23 18:26:08 -07:00
|
|
|
import React from 'react';
|
|
|
|
import { render } from 'react-dom';
|
2017-10-13 17:50:34 -07:00
|
|
|
import Root from './Root';
|
2017-09-24 19:06:28 -07:00
|
|
|
import { configuredStore } from './store';
|
2017-12-14 15:47:11 -08:00
|
|
|
import consoleAdvertisement from './utils/consoleAdvertisement';
|
2017-07-05 16:28:54 -07:00
|
|
|
|
2018-01-01 15:15:13 -08:00
|
|
|
const appEl = document.getElementById('app');
|
2018-01-08 21:04:20 -08:00
|
|
|
|
2017-12-30 08:22:28 -08:00
|
|
|
render(<Root store={configuredStore} />, appEl);
|
2017-04-11 22:04:27 -07:00
|
|
|
|
|
|
|
if (module.hot) {
|
2017-12-14 15:47:11 -08:00
|
|
|
module.hot.accept('reducers', () => configuredStore.replaceReducer(require('reducers')));
|
2017-10-13 17:50:34 -07:00
|
|
|
|
|
|
|
module.hot.accept('./Root', () => {
|
2017-12-30 08:22:28 -08:00
|
|
|
render(<Root store={configuredStore} />, appEl);
|
2017-10-13 17:50:34 -07:00
|
|
|
});
|
2017-04-11 22:04:27 -07:00
|
|
|
}
|
2017-12-14 15:47:11 -08:00
|
|
|
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
|
|
consoleAdvertisement();
|
|
|
|
}
|