mirror of
https://github.com/yldio/copilot.git
synced 2024-12-01 07:30:07 +02:00
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 ReactDOM from 'react-dom';
|
||||
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') {
|
||||
a11y(React, {
|
||||
@ -10,6 +16,12 @@ if (process.env.NODE_ENV !== 'production') {
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
<Root />,
|
||||
<Provider store={Store(MockState)}>
|
||||
<IntlProvider>
|
||||
<BrowserRouter>
|
||||
<App />
|
||||
</BrowserRouter>
|
||||
</IntlProvider>
|
||||
</Provider>,
|
||||
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