1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 11:01:41 +01:00
metamask-extension/ui/app/root.js

32 lines
649 B
JavaScript
Raw Normal View History

const { Component } = require('react')
const PropTypes = require('prop-types')
const { Provider } = require('react-redux')
const h = require('react-hyperscript')
2019-01-30 15:16:40 +01:00
const { HashRouter } = require('react-router-dom')
const App = require('./app')
const I18nProvider = require('./i18n-provider')
class Root extends Component {
render () {
const { store } = this.props
2016-06-21 22:18:32 +02:00
return (
h(Provider, { store }, [
2019-01-30 15:16:40 +01:00
h(HashRouter, {
hashType: 'noslash',
}, [
h(I18nProvider, [
h(App),
]),
]),
])
)
}
}
Root.propTypes = {
store: PropTypes.object,
}
module.exports = Root