aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/wallet-view.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-17 02:57:07 +0800
committerkumavis <aaron@kumavis.me>2018-05-17 02:57:07 +0800
commitc27d9162d7001fa2bd6cfb98dd110716951d2d1b (patch)
tree19f5d4780b3ee82c0e9c9fe2a9c2edad745dd084 /ui/app/components/wallet-view.js
parenta1d13d45cf7451162b071e5507f1e31b12574e6e (diff)
parent6e79225dbff512ab9bcae2731bcfc4ce33e98664 (diff)
downloadtangerine-wallet-browser-c27d9162d7001fa2bd6cfb98dd110716951d2d1b.tar
tangerine-wallet-browser-c27d9162d7001fa2bd6cfb98dd110716951d2d1b.tar.gz
tangerine-wallet-browser-c27d9162d7001fa2bd6cfb98dd110716951d2d1b.tar.bz2
tangerine-wallet-browser-c27d9162d7001fa2bd6cfb98dd110716951d2d1b.tar.lz
tangerine-wallet-browser-c27d9162d7001fa2bd6cfb98dd110716951d2d1b.tar.xz
tangerine-wallet-browser-c27d9162d7001fa2bd6cfb98dd110716951d2d1b.tar.zst
tangerine-wallet-browser-c27d9162d7001fa2bd6cfb98dd110716951d2d1b.zip
Merge branch 'develop' of github.com:MetaMask/metamask-extension into network-controller-remove-setNetworkEndpoints
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')),
])
}