mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
32 lines
835 B
JavaScript
32 lines
835 B
JavaScript
|
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
|