diff options
author | Alexander Tseung <alextsg@gmail.com> | 2017-10-26 00:26:05 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-26 03:16:47 +0800 |
commit | 3d8182f5d54730d3908a210c3deb71b49dd08100 (patch) | |
tree | a2b03a0ac4a1471d853cbea3ab601489dc5b5e5b /ui/app/components/account-menu | |
parent | 2b72b70647caaa81c0077e224a7dc8b9f823c872 (diff) | |
download | tangerine-wallet-browser-3d8182f5d54730d3908a210c3deb71b49dd08100.tar tangerine-wallet-browser-3d8182f5d54730d3908a210c3deb71b49dd08100.tar.gz tangerine-wallet-browser-3d8182f5d54730d3908a210c3deb71b49dd08100.tar.bz2 tangerine-wallet-browser-3d8182f5d54730d3908a210c3deb71b49dd08100.tar.lz tangerine-wallet-browser-3d8182f5d54730d3908a210c3deb71b49dd08100.tar.xz tangerine-wallet-browser-3d8182f5d54730d3908a210c3deb71b49dd08100.tar.zst tangerine-wallet-browser-3d8182f5d54730d3908a210c3deb71b49dd08100.zip |
Add Info section
Diffstat (limited to 'ui/app/components/account-menu')
-rw-r--r-- | ui/app/components/account-menu/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/app/components/account-menu/index.js b/ui/app/components/account-menu/index.js index e0f38ae78..38c7bcb2d 100644 --- a/ui/app/components/account-menu/index.js +++ b/ui/app/components/account-menu/index.js @@ -46,6 +46,10 @@ function mapDispatchToProps (dispatch) { dispatch(actions.showImportPage()) dispatch(actions.toggleAccountMenu()) }, + showInfoPage: () => { + dispatch(actions.showInfoPage()) + dispatch(actions.toggleAccountMenu()) + }, } } @@ -57,6 +61,7 @@ AccountMenu.prototype.render = function () { showImportPage, lockMetamask, showConfigPage, + showInfoPage, } = this.props return h(Menu, { className: 'account-menu', isShowing: isAccountMenuOpen }, [ @@ -84,6 +89,7 @@ AccountMenu.prototype.render = function () { }), h(Divider), h(Item, { + onClick: showInfoPage, icon: h('img', { src: 'images/mm-info-icon.svg' }), text: 'Info & Help', }), |