mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 05:12:18 +01:00
32 lines
649 B
JavaScript
32 lines
649 B
JavaScript
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')
|
|
|
|
class Root extends Component {
|
|
render () {
|
|
const { store } = this.props
|
|
|
|
return (
|
|
h(Provider, { store }, [
|
|
h(HashRouter, {
|
|
hashType: 'noslash',
|
|
}, [
|
|
h(I18nProvider, [
|
|
h(App),
|
|
]),
|
|
]),
|
|
])
|
|
)
|
|
}
|
|
}
|
|
|
|
Root.propTypes = {
|
|
store: PropTypes.object,
|
|
}
|
|
|
|
module.exports = Root
|