Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (30 sloc) 1.21 KB
/* eslint-disable global-require,no-underscore-dangle */
if ((typeof window !== 'undefined' && !window._babelPolyfill) ||
(typeof global !== 'undefined' && !global._babelPolyfill)) {
// Don't load babel-polyfill if already loaded: https://github.com/babel/babel/issues/4019
require('babel-polyfill'); // general ES2015 polyfill (e.g. promise)
}
/* eslint-enable global-require no-underscore-dangle */
/* eslint-disable import/first */
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { IntlProvider } from 'react-intl';
import './SFE.scss';
import WrappedAssetsPage from './components/AssetsPage/container';
import BackendStatusBanner from './components/BackendStatusBanner';
import store from './data/store';
import loadI18nDomData from './utils/i18n/loadI18nDomData';
/* eslint-enable import/first */
const i18nData = loadI18nDomData();
const App = () => (
<IntlProvider locale={i18nData.locale} messages={i18nData.messages}>
<Provider store={store}>
<div className="SFE-wrapper">
<BackendStatusBanner />
<WrappedAssetsPage />
</div>
</Provider>
</IntlProvider>
);
ReactDOM.render(<App />, document.getElementById('root'));