blob: c95c565811d9fd1374b2adc0084b84da07f457b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
const { Component } = require('react')
const PropTypes = require('prop-types')
const { Provider } = require('react-redux')
const h = require('react-hyperscript')
const { HashRouter } = require('react-router-dom')
const App = require('./app')
const I18nProvider = require('./i18n-provider')
const MetaMetricsProvider = require('./metametrics/metametrics.provider')
class Root extends Component {
render () {
const { store } = this.props
return (
h(Provider, { store }, [
h(HashRouter, {
hashType: 'noslash',
}, [
h(MetaMetricsProvider, [
h(I18nProvider, [
h(App),
]),
]),
]),
])
)
}
}
Root.propTypes = {
store: PropTypes.object,
}
module.exports = Root
|