2017-11-29 05:24:35 +01:00
|
|
|
const { Component } = require('react')
|
|
|
|
const PropTypes = require('prop-types')
|
|
|
|
const { Provider } = require('react-redux')
|
2016-04-14 00:28:44 +02:00
|
|
|
const h = require('react-hyperscript')
|
2017-11-14 17:04:55 +01:00
|
|
|
const SelectedApp = require('./select-app')
|
2016-04-14 00:28:44 +02:00
|
|
|
|
2017-11-29 05:24:35 +01:00
|
|
|
class Root extends Component {
|
|
|
|
render () {
|
|
|
|
const { store } = this.props
|
2016-06-21 22:18:32 +02:00
|
|
|
|
2017-11-29 05:24:35 +01:00
|
|
|
return (
|
|
|
|
h(Provider, { store }, [
|
2018-02-01 03:08:49 +01:00
|
|
|
h(SelectedApp),
|
2017-11-29 05:24:35 +01:00
|
|
|
])
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
2016-04-14 00:28:44 +02:00
|
|
|
|
2017-11-29 05:24:35 +01:00
|
|
|
Root.propTypes = {
|
|
|
|
store: PropTypes.object,
|
2016-04-14 00:28:44 +02:00
|
|
|
}
|
2017-11-29 05:24:35 +01:00
|
|
|
|
|
|
|
module.exports = Root
|