mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Hook up showAddToken to dropdown menu item in account options dropdown
This commit is contained in:
parent
18496ad859
commit
9d69401041
@ -648,10 +648,9 @@ function showConfigPage (transitionForward = true) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function showAddTokenPage (transitionForward = true) {
|
function showAddTokenPage () {
|
||||||
return {
|
return {
|
||||||
type: actions.SHOW_ADD_TOKEN_PAGE,
|
type: actions.SHOW_ADD_TOKEN_PAGE,
|
||||||
value: transitionForward,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -308,7 +308,7 @@ class AccountDropdowns extends Component {
|
|||||||
{
|
{
|
||||||
closeMenu: () => {},
|
closeMenu: () => {},
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
// Add Token Scren
|
actions.showAddTokenPage()
|
||||||
},
|
},
|
||||||
style: Object.assign(
|
style: Object.assign(
|
||||||
{},
|
{},
|
||||||
@ -403,6 +403,9 @@ const mapDispatchToProps = (dispatch) => {
|
|||||||
showNewAccountModal: () => {
|
showNewAccountModal: () => {
|
||||||
dispatch(actions.showModal({ name: 'NEW_ACCOUNT' }))
|
dispatch(actions.showModal({ name: 'NEW_ACCOUNT' }))
|
||||||
},
|
},
|
||||||
|
showAddTokenPage: () => {
|
||||||
|
dispatch(actions.showAddTokenPage())
|
||||||
|
},
|
||||||
addNewAccount: () => dispatch(actions.addNewAccount()),
|
addNewAccount: () => dispatch(actions.addNewAccount()),
|
||||||
showImportPage: () => dispatch(actions.showImportPage()),
|
showImportPage: () => dispatch(actions.showImportPage()),
|
||||||
showQrView: (selected, identity) => dispatch(actions.showQrView(selected, identity)),
|
showQrView: (selected, identity) => dispatch(actions.showQrView(selected, identity)),
|
||||||
|
Loading…
Reference in New Issue
Block a user