remove root
This commit is contained in:
parent
5307fc0c9d
commit
9cda6aec2d
@ -1,7 +1,13 @@
|
|||||||
|
import { IntlProvider } from 'react-intl-redux';
|
||||||
|
import { BrowserRouter } from 'react-router-dom';
|
||||||
|
import { Provider } from 'react-redux';
|
||||||
import a11y from 'react-a11y';
|
import a11y from 'react-a11y';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Root from './root';
|
|
||||||
|
import App from '@containers/app';
|
||||||
|
import MockState from './mock-state.json';
|
||||||
|
import Store from '@state/store';
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== 'production') {
|
if (process.env.NODE_ENV !== 'production') {
|
||||||
a11y(React, {
|
a11y(React, {
|
||||||
@ -10,6 +16,12 @@ if (process.env.NODE_ENV !== 'production') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<Root />,
|
<Provider store={Store(MockState)}>
|
||||||
|
<IntlProvider>
|
||||||
|
<BrowserRouter>
|
||||||
|
<App />
|
||||||
|
</BrowserRouter>
|
||||||
|
</IntlProvider>
|
||||||
|
</Provider>,
|
||||||
document.getElementById('root')
|
document.getElementById('root')
|
||||||
);
|
);
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import { IntlProvider } from 'react-intl-redux';
|
|
||||||
import { Provider } from 'react-redux';
|
|
||||||
import { BrowserRouter } from 'react-router-dom';
|
|
||||||
|
|
||||||
import App from '@containers/app';
|
|
||||||
import Store from '@state/store';
|
|
||||||
import MockState from './mock-state.json';
|
|
||||||
|
|
||||||
export default () => (
|
|
||||||
<Provider store={Store(MockState)}>
|
|
||||||
<IntlProvider>
|
|
||||||
<BrowserRouter>
|
|
||||||
<App />
|
|
||||||
</BrowserRouter>
|
|
||||||
</IntlProvider>
|
|
||||||
</Provider>
|
|
||||||
);
|
|
Loading…
Reference in New Issue
Block a user