aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/app.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-06-24 05:39:50 +0800
committerDan Finlay <dan@danfinlay.com>2016-06-24 05:39:50 +0800
commit4ebb9f631e9a1487a58ccd2f1ff6776eb9a73466 (patch)
tree6590990c5839e606a9b322d35f5618004a0b3deb /ui/app/app.js
parent216e7235dd590bffacb0778e387030e9bd0d90bc (diff)
downloadtangerine-wallet-browser-4ebb9f631e9a1487a58ccd2f1ff6776eb9a73466.tar
tangerine-wallet-browser-4ebb9f631e9a1487a58ccd2f1ff6776eb9a73466.tar.gz
tangerine-wallet-browser-4ebb9f631e9a1487a58ccd2f1ff6776eb9a73466.tar.bz2
tangerine-wallet-browser-4ebb9f631e9a1487a58ccd2f1ff6776eb9a73466.tar.lz
tangerine-wallet-browser-4ebb9f631e9a1487a58ccd2f1ff6776eb9a73466.tar.xz
tangerine-wallet-browser-4ebb9f631e9a1487a58ccd2f1ff6776eb9a73466.tar.zst
tangerine-wallet-browser-4ebb9f631e9a1487a58ccd2f1ff6776eb9a73466.zip
Moved account change button to menu bar
Diffstat (limited to 'ui/app/app.js')
-rw-r--r--ui/app/app.js47
1 files changed, 35 insertions, 12 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 7204fb098..7493a3a73 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -120,19 +120,42 @@ App.prototype.renderAppBar = function () {
// metamask name
h('h1', 'MetaMask'),
- // hamburger
- h(SandwichExpando, {
- width: 16,
- barHeight: 2,
- padding: 0,
- isOpen: props.menuOpen,
- color: 'rgb(247,146,30)',
- onClick: (event) => {
- event.preventDefault()
- event.stopPropagation()
- this.props.dispatch(actions.toggleMenu())
+
+ h('div', {
+ style: {
+ display: 'flex',
+ flexDirection: 'row',
+ alignItems: 'center',
},
- }),
+ }, [
+
+ // small accounts nav
+ h('img.cursor-pointer.color-orange', {
+ src: 'images/switch_acc.svg',
+ style: {
+ width: '23.5px',
+ marginRight: '8px',
+ },
+ onClick: (event) => {
+ event.stopPropagation()
+ this.props.dispatch(actions.showAccountsPage())
+ },
+ }),
+
+ // hamburger
+ h(SandwichExpando, {
+ width: 16,
+ barHeight: 2,
+ padding: 0,
+ isOpen: props.menuOpen,
+ color: 'rgb(247,146,30)',
+ onClick: (event) => {
+ event.preventDefault()
+ event.stopPropagation()
+ this.props.dispatch(actions.toggleMenu())
+ },
+ }),
+ ]),
]),
])
)