diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-07 05:55:28 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-07 05:56:13 +0800 |
commit | 17de77f24a11bfcd26f8472628d6ead28ce8dced (patch) | |
tree | 2725ed9fcd62c455b7f4b0c89942cf31b74c5278 /ui/app/components/tx-view.js | |
parent | c9b33da184cfc7262ce47095eae708bf9bcc5589 (diff) | |
download | tangerine-wallet-browser-17de77f24a11bfcd26f8472628d6ead28ce8dced.tar tangerine-wallet-browser-17de77f24a11bfcd26f8472628d6ead28ce8dced.tar.gz tangerine-wallet-browser-17de77f24a11bfcd26f8472628d6ead28ce8dced.tar.bz2 tangerine-wallet-browser-17de77f24a11bfcd26f8472628d6ead28ce8dced.tar.lz tangerine-wallet-browser-17de77f24a11bfcd26f8472628d6ead28ce8dced.tar.xz tangerine-wallet-browser-17de77f24a11bfcd26f8472628d6ead28ce8dced.tar.zst tangerine-wallet-browser-17de77f24a11bfcd26f8472628d6ead28ce8dced.zip |
Position account display and burger in mobile tx view
Diffstat (limited to 'ui/app/components/tx-view.js')
-rw-r--r-- | ui/app/components/tx-view.js | 47 |
1 files changed, 41 insertions, 6 deletions
diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js index 36c22897e..75c8a2c11 100644 --- a/ui/app/components/tx-view.js +++ b/ui/app/components/tx-view.js @@ -7,7 +7,7 @@ const actions = require('../actions') const SlideoutMenu = require('react-burger-menu').slide const WalletView = require('./wallet-view') -// const Identicon = require('./identicon') +const Identicon = require('./identicon') // const AccountDropdowns = require('./account-dropdowns').AccountDropdowns // const Content = require('./wallet-content-display') @@ -41,6 +41,8 @@ function TxView () { } TxView.prototype.render = function () { + const selected = '0x82df11beb942BEeeD58d466fCb0F0791365C7684' // TODO: remove fake address + return h('div.tx-view.flex-column', { style: { flexGrow: 2, @@ -49,16 +51,49 @@ TxView.prototype.render = function () { background: '#FFFFFF', } }, [ - h('div.phone-visible.fa.fa-bars', { - onClick: () => { - this.props.sidebarOpen ? this.props.hideSidebar() : this.props.showSidebar() + + h('div.flex-row.phone-visible', { + style: { + margin: '1em 0.9em', + alignItems: 'center' } }, [ + // burger + h('div.fa.fa-bars', { + style: { + fontSize: '1.3em', + }, + onClick: () => { + this.props.sidebarOpen ? this.props.hideSidebar() : this.props.showSidebar() + } + }, []), + + //account display + h('.identicon-wrapper.select-none', { + style: { + marginLeft: '0.9em', + }, + }, [ + h(Identicon, { + diameter: 24, + address: selected, + }), + ]), + + h('span', { + style: { + fontSize: '1.2em', + marginLeft: '0.5em', // TODO: switch all units for this component to em + } + }, [ + 'Account 1' + ]), + ]), h('div.flex-row', { style: { - margin: '1.8em 1.3em 0.8em 1.3em', + margin: '1.8em 0.9em 0.8em 0.9em', // flex: '1 0 520px', } }, [ @@ -119,7 +154,7 @@ TxView.prototype.render = function () { h('div.flex-row', { style: { - margin: '1.8em 1.3em 0.8em 1.3em', + margin: '1.8em 0.9em 0.8em 0.9em', } }, [ |