diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-05-19 03:30:03 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-05-19 03:30:03 +0800 |
commit | d18d9a8f97216afae4a6c9d8d659952ed5cba765 (patch) | |
tree | f4622bd27a49bf8feaacf633ecb69ff5e9f4fdf7 /ui/app/app.js | |
parent | 06557d7900b77a80eaa7e305d55182a6d0c10db5 (diff) | |
download | tangerine-wallet-browser-d18d9a8f97216afae4a6c9d8d659952ed5cba765.tar tangerine-wallet-browser-d18d9a8f97216afae4a6c9d8d659952ed5cba765.tar.gz tangerine-wallet-browser-d18d9a8f97216afae4a6c9d8d659952ed5cba765.tar.bz2 tangerine-wallet-browser-d18d9a8f97216afae4a6c9d8d659952ed5cba765.tar.lz tangerine-wallet-browser-d18d9a8f97216afae4a6c9d8d659952ed5cba765.tar.xz tangerine-wallet-browser-d18d9a8f97216afae4a6c9d8d659952ed5cba765.tar.zst tangerine-wallet-browser-d18d9a8f97216afae4a6c9d8d659952ed5cba765.zip |
Add animated sandwich button
Diffstat (limited to 'ui/app/app.js')
-rw-r--r-- | ui/app/app.js | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index 68d34e52f..ec869145e 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -24,6 +24,8 @@ const ConfigScreen = require('./config') const InfoScreen = require('./info') const LoadingIndicator = require('./loading') const txHelper = require('../lib/tx-helper') +const SandwichExpando = require('sandwich-expando') +const MenuDroppo = require('menu-droppo') module.exports = connect(mapStateToProps)(App) @@ -42,6 +44,7 @@ function mapStateToProps(state) { seedWords: state.metamask.seedWords, unconfTxs: state.metamask.unconfTxs, unconfMsgs: state.metamask.unconfMsgs, + menuOpen: state.appState.menuOpen, } } @@ -143,12 +146,17 @@ App.prototype.renderAppBar = function(){ src: '/images/icon-128.png', }), - // metamask name + // metamask namlterChangese h('h1', 'MetaMask'), // hamburger - h('i.fa.fa-bars.cursor-pointer.color-orange', { - onClick: (event) => state.dispatch(actions.showConfigPage()), + h(SandwichExpando, { + width: 16, + barHeight: 2, + padding: 0, + isOpen: state.menuOpen, + color: 'rgb(247,146,30)', + onClick: () => this.props.dispatch(actions.toggleMenu()), }), ]) |