diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-07-21 03:38:38 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-07-21 03:38:38 +0800 |
commit | 86d367957fe8ac04462f716fe0ba2bfa4e5ff3f6 (patch) | |
tree | b4a6805e5e2a4de48c880d80f4b87d1f3b560a18 /ui/app/template.js | |
parent | 199587383b022a17d56adcb56d6a99ceba71fec7 (diff) | |
download | dexon-wallet-86d367957fe8ac04462f716fe0ba2bfa4e5ff3f6.tar.gz dexon-wallet-86d367957fe8ac04462f716fe0ba2bfa4e5ff3f6.tar.zst dexon-wallet-86d367957fe8ac04462f716fe0ba2bfa4e5ff3f6.zip |
Move responsive ui into its own folder for easier merges
Diffstat (limited to 'ui/app/template.js')
-rw-r--r-- | ui/app/template.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ui/app/template.js b/ui/app/template.js new file mode 100644 index 00000000..d15b30fd --- /dev/null +++ b/ui/app/template.js @@ -0,0 +1,30 @@ +const inherits = require('util').inherits +const Component = require('react').Component +const h = require('react-hyperscript') +const connect = require('react-redux').connect + +module.exports = connect(mapStateToProps)(COMPONENTNAME) + +function mapStateToProps (state) { + return {} +} + +inherits(COMPONENTNAME, Component) +function COMPONENTNAME () { + Component.call(this) +} + +COMPONENTNAME.prototype.render = function () { + const props = this.props + + return ( + h('div', { + style: { + background: 'blue', + }, + }, [ + `Hello, ${props.sender}`, + ]) + ) +} + |