aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-07 05:55:28 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-07 05:56:13 +0800
commit17de77f24a11bfcd26f8472628d6ead28ce8dced (patch)
tree2725ed9fcd62c455b7f4b0c89942cf31b74c5278 /ui/app/components
parentc9b33da184cfc7262ce47095eae708bf9bcc5589 (diff)
downloadtangerine-wallet-browser-17de77f24a11bfcd26f8472628d6ead28ce8dced.tar.gz
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')
-rw-r--r--ui/app/components/tx-view.js47
-rw-r--r--ui/app/components/wallet-view.js2
2 files changed, 42 insertions, 7 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',
}
}, [
diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js
index d57ab39d9..2518a1213 100644
--- a/ui/app/components/wallet-view.js
+++ b/ui/app/components/wallet-view.js
@@ -31,7 +31,7 @@ function WalletView () {
const noop = () => {}
WalletView.prototype.render = function () {
- const selected = '0x82df11beb942BEeeD58d466fCb0F0791365C7684'
+ const selected = '0x82df11beb942BEeeD58d466fCb0F0791365C7684' // TODO: remove fake address
const { network, responsiveDisplayClassname, style } = this.props
return h('div.wallet-view.flex-column' + (responsiveDisplayClassname || ''), {