aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/dropdowns
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-09-28 08:41:46 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-09-29 06:54:04 +0800
commita4838b1c575f08f9a83457222737075bab374936 (patch)
tree0e1b936dee22ee8e6676daf11b1796d69a568cc9 /ui/app/components/dropdowns
parentc74c1fe87f05c85abd44e0519c76cbcfcd50bee8 (diff)
downloadtangerine-wallet-browser-a4838b1c575f08f9a83457222737075bab374936.tar.gz
tangerine-wallet-browser-a4838b1c575f08f9a83457222737075bab374936.tar.zst
tangerine-wallet-browser-a4838b1c575f08f9a83457222737075bab374936.zip
Close mobile sidebar when selecting 'Add token' from account options dropdown.
Diffstat (limited to 'ui/app/components/dropdowns')
-rw-r--r--ui/app/components/dropdowns/components/account-dropdowns.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/app/components/dropdowns/components/account-dropdowns.js b/ui/app/components/dropdowns/components/account-dropdowns.js
index d53d2a81b..fc60c6005 100644
--- a/ui/app/components/dropdowns/components/account-dropdowns.js
+++ b/ui/app/components/dropdowns/components/account-dropdowns.js
@@ -349,6 +349,7 @@ class AccountDropdowns extends Component {
{
closeMenu: () => {},
onClick: () => {
+ actions.hideSidebar()
actions.showAddTokenPage()
},
style: Object.assign(
@@ -425,6 +426,7 @@ AccountDropdowns.propTypes = {
const mapDispatchToProps = (dispatch) => {
return {
actions: {
+ hideSidebar: () => dispatch(actions.hideSidebar()),
showConfigPage: () => dispatch(actions.showConfigPage()),
showAccountDetail: (address) => dispatch(actions.showAccountDetail(address)),
showAccountDetailModal: () => {