2019-12-06 16:40:07 +01:00
|
|
|
import React from 'react'
|
2020-01-09 04:34:58 +01:00
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
import { Provider } from 'react-redux'
|
|
|
|
import { HashRouter } from 'react-router-dom'
|
|
|
|
import Routes from './routes'
|
|
|
|
import I18nProvider from '../helpers/higher-order-components/i18n-provider'
|
|
|
|
import MetaMetricsProvider from '../helpers/higher-order-components/metametrics/metametrics.provider'
|
2019-03-22 00:03:30 +01:00
|
|
|
|
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,
|
|
|
|
}
|
|
|
|
|
2020-01-09 04:34:58 +01:00
|
|
|
export default Index
|