diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-07-31 12:25:32 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-07-31 12:25:32 +0800 |
commit | cbd53d4601f1af5aa4337e86ea8875606406e803 (patch) | |
tree | e7072ff1f0a9fe2864ff56c3ba77a0dde8e42a3d /ui/app/components/wallet-view.js | |
parent | ca1a4b309676c3d10473acf4869b398d4ed50fb7 (diff) | |
download | tangerine-wallet-browser-cbd53d4601f1af5aa4337e86ea8875606406e803.tar tangerine-wallet-browser-cbd53d4601f1af5aa4337e86ea8875606406e803.tar.gz tangerine-wallet-browser-cbd53d4601f1af5aa4337e86ea8875606406e803.tar.bz2 tangerine-wallet-browser-cbd53d4601f1af5aa4337e86ea8875606406e803.tar.lz tangerine-wallet-browser-cbd53d4601f1af5aa4337e86ea8875606406e803.tar.xz tangerine-wallet-browser-cbd53d4601f1af5aa4337e86ea8875606406e803.tar.zst tangerine-wallet-browser-cbd53d4601f1af5aa4337e86ea8875606406e803.zip |
Add containers for wallet view and dropdown UI
Diffstat (limited to 'ui/app/components/wallet-view.js')
-rw-r--r-- | ui/app/components/wallet-view.js | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js new file mode 100644 index 000000000..fed227d6b --- /dev/null +++ b/ui/app/components/wallet-view.js @@ -0,0 +1,81 @@ +const Component = require('react').Component +const connect = require('react-redux').connect +const h = require('react-hyperscript') +const inherits = require('util').inherits +const Identicon = require('./identicon') +const AccountDropdowns = require('./account-dropdowns').AccountDropdowns + +module.exports = connect(mapStateToProps)(WalletView) + +function mapStateToProps (state) { + return { + network: state.metamask.network, + } +} + + +inherits(WalletView, Component) +function WalletView () { + Component.call(this) +} + +const noop = () => {} + +WalletView.prototype.render = function () { + const selected = '0x82df11beb942BEeeD58d466fCb0F0791365C7684' + const { network } = this.props + + return h('div.wallet-view.flex-column', { + style: { + flexGrow: 1, + height: '82vh', + background: '#FAFAFA', + } + }, [ + + h('div.flex-row.flex-center', { + style: { + // marginLeft: '5px', + // marginRight: '5px', + // marginTop: '10px', + // alignItems: 'center', + } + }, [ + + h('.identicon-wrapper.select-none', [ + h(Identicon, { + diameter: 24, + address: selected, + }), + ]), + + h('span', { + style: { + fontSize: '1.5em', + marginLeft: '5px', + } + }, [ + 'Account 1' + ]), + + h( + AccountDropdowns, + { + style: { + marginRight: '8px', + marginLeft: 'auto', + cursor: 'pointer', + }, + selected, + network, + identities: {}, + }, + ), + + ]) + + // wallet display 1 + // token display 1 + + ]) +} |