2019-12-06 16:40:07 +01:00
|
|
|
import React from 'react'
|
2019-03-22 00:03:30 +01:00
|
|
|
const PropTypes = require('prop-types')
|
|
|
|
const { Provider } = require('react-redux')
|
|
|
|
const { HashRouter } = require('react-router-dom')
|
|
|
|
const Routes = require('./routes')
|
|
|
|
const I18nProvider = require('../helpers/higher-order-components/i18n-provider')
|
|
|
|
const MetaMetricsProvider = require('../helpers/higher-order-components/metametrics/metametrics.provider')
|
|
|
|
|
2019-12-06 16:40:07 +01:00
|
|
|
const Index = props => {
|
|
|
|
const { store } = props
|
2019-03-22 00:03:30 +01:00
|
|
|
|
2019-12-06 16:40:07 +01:00
|
|
|
return (
|
|
|
|
<Provider store={store}>
|
|
|
|
<HashRouter hashType="noslash">
|
|
|
|
<MetaMetricsProvider>
|
|
|
|
<I18nProvider>
|
|
|
|
<Routes />
|
|
|
|
</I18nProvider>
|
|
|
|
</MetaMetricsProvider>
|
|
|
|
</HashRouter>
|
|
|
|
</Provider>
|
|
|
|
)
|
2019-03-22 00:03:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
Index.propTypes = {
|
|
|
|
store: PropTypes.object,
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Index
|