You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
835 B
32 lines
835 B
6 years ago
|
import React, { Component } from 'react'
|
||
|
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')
|
||
|
|
||
|
class Index extends Component {
|
||
|
render () {
|
||
|
const { store } = this.props
|
||
|
|
||
|
return (
|
||
|
<Provider store={store}>
|
||
|
<HashRouter hashType="noslash">
|
||
|
<MetaMetricsProvider>
|
||
|
<I18nProvider>
|
||
|
<Routes />
|
||
|
</I18nProvider>
|
||
|
</MetaMetricsProvider>
|
||
|
</HashRouter>
|
||
|
</Provider>
|
||
|
)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Index.propTypes = {
|
||
|
store: PropTypes.object,
|
||
|
}
|
||
|
|
||
|
module.exports = Index
|