1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +02:00

remove root

This commit is contained in:
Sérgio Ramos 2017-02-24 12:13:10 +00:00
parent 5307fc0c9d
commit 9cda6aec2d
2 changed files with 14 additions and 20 deletions

View File

@ -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')
);

View File

@ -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>
);