2016-09-13 17:08:26 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { Provider } from 'react-redux';
|
2017-10-12 19:10:43 -06:00
|
|
|
import { Route } from 'react-router-dom';
|
|
|
|
import { ConnectedRouter } from 'react-router-redux';
|
|
|
|
import history from './routing/history';
|
2017-01-19 15:50:26 -02:00
|
|
|
import configureStore from './redux/configureStore';
|
2017-01-10 22:23:22 -02:00
|
|
|
import { setStore } from './valueObjects/AssetProxy';
|
2017-10-12 19:10:43 -06:00
|
|
|
import App from './containers/App';
|
2016-09-13 17:08:26 +02:00
|
|
|
|
|
|
|
const store = configureStore();
|
|
|
|
|
2017-01-10 22:23:22 -02:00
|
|
|
setStore(store);
|
|
|
|
|
2016-09-13 17:08:26 +02:00
|
|
|
const Root = () => (
|
|
|
|
<Provider store={store}>
|
2017-10-12 19:10:43 -06:00
|
|
|
<ConnectedRouter history={history}>
|
|
|
|
<Route component={App}/>
|
|
|
|
</ConnectedRouter>
|
2016-09-13 17:08:26 +02:00
|
|
|
</Provider>
|
2016-09-13 18:06:01 +02:00
|
|
|
);
|
2016-09-13 17:08:26 +02:00
|
|
|
|
2016-09-13 18:06:01 +02:00
|
|
|
export default Root;
|