aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/wallet-view.js
diff options
context:
space:
mode:
authorThomas <thomas.b.huang@gmail.com>2018-05-17 13:47:07 +0800
committerThomas <thomas.b.huang@gmail.com>2018-05-17 13:47:07 +0800
commit5e80bc4cb93277c8b3952345a6cb4cc055248b94 (patch)
treea173db7caddd63a055dcf3eff4c8b66ba954eb27 /ui/app/components/wallet-view.js
parentd9be7f989a86e3fdfd83e4c632fd08cefd8309e5 (diff)
parent6e79225dbff512ab9bcae2731bcfc4ce33e98664 (diff)
downloadtangerine-wallet-browser-5e80bc4cb93277c8b3952345a6cb4cc055248b94.tar
tangerine-wallet-browser-5e80bc4cb93277c8b3952345a6cb4cc055248b94.tar.gz
tangerine-wallet-browser-5e80bc4cb93277c8b3952345a6cb4cc055248b94.tar.bz2
tangerine-wallet-browser-5e80bc4cb93277c8b3952345a6cb4cc055248b94.tar.lz
tangerine-wallet-browser-5e80bc4cb93277c8b3952345a6cb4cc055248b94.tar.xz
tangerine-wallet-browser-5e80bc4cb93277c8b3952345a6cb4cc055248b94.tar.zst
tangerine-wallet-browser-5e80bc4cb93277c8b3952345a6cb4cc055248b94.zip
Merge branch 'develop' into testing
Diffstat (limited to 'ui/app/components/wallet-view.js')
-rw-r--r--ui/app/components/wallet-view.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js
index 9e430f87b..3b29dacac 100644
--- a/ui/app/components/wallet-view.js
+++ b/ui/app/components/wallet-view.js
@@ -102,6 +102,7 @@ WalletView.prototype.render = function () {
selectedIdentity,
keyrings,
showAccountDetailModal,
+ sidebarOpen,
hideSidebar,
history,
} = this.props
@@ -182,7 +183,10 @@ WalletView.prototype.render = function () {
h(TokenList),
h('button.btn-primary.wallet-view__add-token-button', {
- onClick: () => history.push(ADD_TOKEN_ROUTE),
+ onClick: () => {
+ history.push(ADD_TOKEN_ROUTE)
+ sidebarOpen && hideSidebar()
+ },
}, this.context.t('addToken')),
])
}