aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/account-menu
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2017-10-26 00:26:05 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-26 03:16:47 +0800
commit3d8182f5d54730d3908a210c3deb71b49dd08100 (patch)
treea2b03a0ac4a1471d853cbea3ab601489dc5b5e5b /ui/app/components/account-menu
parent2b72b70647caaa81c0077e224a7dc8b9f823c872 (diff)
downloadtangerine-wallet-browser-3d8182f5d54730d3908a210c3deb71b49dd08100.tar.gz
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.js6
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',
}),