diff options
author | Dan <danjm.com@gmail.com> | 2018-04-10 03:22:26 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-04-10 03:22:26 +0800 |
commit | 2c4426e4de745be880a994674dc1dc74c7ec74eb (patch) | |
tree | 1de9b836026d3222b490793099b66372404b83ab /ui/app/root.js | |
parent | 9dbb9d12ad31d53b8911db171cb7d6b3fcb477e2 (diff) | |
parent | 4cae3d3b0d2a9cc0279e44de256e7fc7e219dca1 (diff) | |
download | tangerine-wallet-browser-2c4426e4de745be880a994674dc1dc74c7ec74eb.tar.gz tangerine-wallet-browser-2c4426e4de745be880a994674dc1dc74c7ec74eb.tar.zst tangerine-wallet-browser-2c4426e4de745be880a994674dc1dc74c7ec74eb.zip |
Merge branch 'master' into i3580-InternationalizeCurrency
Diffstat (limited to 'ui/app/root.js')
-rw-r--r-- | ui/app/root.js | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/ui/app/root.js b/ui/app/root.js index 21d6d1829..09deae1b1 100644 --- a/ui/app/root.js +++ b/ui/app/root.js @@ -1,22 +1,23 @@ -const inherits = require('util').inherits -const Component = require('react').Component -const Provider = require('react-redux').Provider +const { Component } = require('react') +const PropTypes = require('prop-types') +const { Provider } = require('react-redux') const h = require('react-hyperscript') const SelectedApp = require('./select-app') -module.exports = Root - -inherits(Root, Component) -function Root () { Component.call(this) } - -Root.prototype.render = function () { - return ( +class Root extends Component { + render () { + const { store } = this.props - h(Provider, { - store: this.props.store, - }, [ - h(SelectedApp), - ]) + return ( + h(Provider, { store }, [ + h(SelectedApp), + ]) + ) + } +} - ) +Root.propTypes = { + store: PropTypes.object, } + +module.exports = Root |