mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 12:56:01 +01:00
92971d3c87
* Update eslint-plugin-import version * Convert JS files to use ESM * Update ESLint rules to check imports * Fix test:unit:global command env * Cleanup mock-dev script
30 lines
734 B
JavaScript
30 lines
734 B
JavaScript
import React from 'react'
|
|
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'
|
|
|
|
const Index = props => {
|
|
const { store } = props
|
|
|
|
return (
|
|
<Provider store={store}>
|
|
<HashRouter hashType="noslash">
|
|
<MetaMetricsProvider>
|
|
<I18nProvider>
|
|
<Routes />
|
|
</I18nProvider>
|
|
</MetaMetricsProvider>
|
|
</HashRouter>
|
|
</Provider>
|
|
)
|
|
}
|
|
|
|
Index.propTypes = {
|
|
store: PropTypes.object,
|
|
}
|
|
|
|
export default Index
|