diff options
author | Dan <danjm.com@gmail.com> | 2017-09-28 08:41:46 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-09-29 06:54:04 +0800 |
commit | a4838b1c575f08f9a83457222737075bab374936 (patch) | |
tree | 0e1b936dee22ee8e6676daf11b1796d69a568cc9 /ui | |
parent | c74c1fe87f05c85abd44e0519c76cbcfcd50bee8 (diff) | |
download | tangerine-wallet-browser-a4838b1c575f08f9a83457222737075bab374936.tar tangerine-wallet-browser-a4838b1c575f08f9a83457222737075bab374936.tar.gz tangerine-wallet-browser-a4838b1c575f08f9a83457222737075bab374936.tar.bz2 tangerine-wallet-browser-a4838b1c575f08f9a83457222737075bab374936.tar.lz tangerine-wallet-browser-a4838b1c575f08f9a83457222737075bab374936.tar.xz 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')
-rw-r--r-- | ui/app/components/dropdowns/components/account-dropdowns.js | 2 |
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: () => { |