2016-10-20 04:14:26 +03:00
|
|
|
const React = require('react');
|
2016-10-20 22:42:39 +03:00
|
|
|
const ReactIntlRedux = require('react-intl-redux');
|
2016-10-20 04:14:26 +03:00
|
|
|
const ReactHotLoader = require('react-hot-loader');
|
|
|
|
const ReactRedux = require('react-redux');
|
|
|
|
const ReactRouter = require('react-router');
|
|
|
|
|
2016-12-05 22:28:10 +02:00
|
|
|
const App = require('@containers/app');
|
2016-12-14 00:09:04 +02:00
|
|
|
const Store = require('@state/store');
|
2016-10-20 04:14:26 +03:00
|
|
|
|
2016-10-20 22:42:39 +03:00
|
|
|
const {
|
|
|
|
IntlProvider
|
|
|
|
} = ReactIntlRedux;
|
|
|
|
|
2016-10-20 04:14:26 +03:00
|
|
|
const {
|
|
|
|
AppContainer
|
|
|
|
} = ReactHotLoader;
|
|
|
|
|
|
|
|
const {
|
|
|
|
Provider
|
|
|
|
} = ReactRedux;
|
|
|
|
|
|
|
|
const {
|
|
|
|
BrowserRouter
|
|
|
|
} = ReactRouter;
|
|
|
|
|
2016-12-19 14:25:37 +02:00
|
|
|
const store = Store(require('./mock-state.json'));
|
2016-12-14 00:09:04 +02:00
|
|
|
|
2016-10-20 04:14:26 +03:00
|
|
|
module.exports = () => {
|
|
|
|
return (
|
|
|
|
<AppContainer>
|
2016-12-14 00:09:04 +02:00
|
|
|
<Provider store={store}>
|
2016-10-20 22:42:39 +03:00
|
|
|
<IntlProvider>
|
|
|
|
<BrowserRouter>
|
|
|
|
{App}
|
|
|
|
</BrowserRouter>
|
|
|
|
</IntlProvider>
|
2016-10-20 04:14:26 +03:00
|
|
|
</Provider>
|
|
|
|
</AppContainer>
|
|
|
|
);
|
|
|
|
};
|