1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app/root.js

29 lines
580 B
JavaScript

const { Component } = require('react')
const PropTypes = require('prop-types')
const { Provider } = require('react-redux')
const h = require('react-hyperscript')
const SelectedApp = require('./select-app')
const { HashRouter } = require('react-router-dom')
class Root extends Component {
render () {
const { store } = this.props
return (
h(Provider, { store }, [
h(HashRouter, {
hashType: 'noslash',
}, [
h(SelectedApp),
]),
])
)
}
}
Root.propTypes = {
store: PropTypes.object,
}
module.exports = Root