MyCrypto/common/index.tsx
William O'Beirne 5d41a7f774 Remove all LESS code (#1348)
* Checking in removal process.

* Final removal of all SCSS

* Remove unnecessary test

* tscheck
2018-03-20 15:08:57 -05:00

27 lines
772 B
TypeScript

// Application styles must come first in order, to allow for overrides
import 'font-awesome/scss/font-awesome.scss';
import 'sass/styles.scss';
import 'babel-polyfill';
import 'whatwg-fetch';
import React from 'react';
import { render } from 'react-dom';
import Root from './Root';
import { configuredStore } from './store';
import consoleAdvertisement from './utils/consoleAdvertisement';
const appEl = document.getElementById('app');
render(<Root store={configuredStore} />, appEl);
if (module.hot) {
module.hot.accept('reducers', () => configuredStore.replaceReducer(require('reducers')));
module.hot.accept('./Root', () => {
render(<Root store={configuredStore} />, appEl);
});
}
if (process.env.NODE_ENV === 'production') {
consoleAdvertisement();
}