Close mobile sidebar when selecting 'Add token' from account options dropdown.

feature/default_network_editable
Dan 7 years ago committed by Chi Kei Chan
parent c74c1fe87f
commit a4838b1c57
  1. 2
      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: () => {

Loading…
Cancel
Save