1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

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

This commit is contained in:
Dan 2017-09-27 22:11:46 -02:30 committed by Chi Kei Chan
parent c74c1fe87f
commit a4838b1c57

View File

@ -349,6 +349,7 @@ class AccountDropdowns extends Component {
{ {
closeMenu: () => {}, closeMenu: () => {},
onClick: () => { onClick: () => {
actions.hideSidebar()
actions.showAddTokenPage() actions.showAddTokenPage()
}, },
style: Object.assign( style: Object.assign(
@ -425,6 +426,7 @@ AccountDropdowns.propTypes = {
const mapDispatchToProps = (dispatch) => { const mapDispatchToProps = (dispatch) => {
return { return {
actions: { actions: {
hideSidebar: () => dispatch(actions.hideSidebar()),
showConfigPage: () => dispatch(actions.showConfigPage()), showConfigPage: () => dispatch(actions.showConfigPage()),
showAccountDetail: (address) => dispatch(actions.showAccountDetail(address)), showAccountDetail: (address) => dispatch(actions.showAccountDetail(address)),
showAccountDetailModal: () => { showAccountDetailModal: () => {