Hook up showAddToken to dropdown menu item in account options dropdown

feature/default_network_editable
sdtsui 7 years ago
parent 18496ad859
commit 9d69401041
  1. 3
      ui/app/actions.js
  2. 5
      ui/app/components/dropdowns/components/account-dropdowns.js

@ -648,10 +648,9 @@ function showConfigPage (transitionForward = true) {
}
}
function showAddTokenPage (transitionForward = true) {
function showAddTokenPage () {
return {
type: actions.SHOW_ADD_TOKEN_PAGE,
value: transitionForward,
}
}

@ -308,7 +308,7 @@ class AccountDropdowns extends Component {
{
closeMenu: () => {},
onClick: () => {
// Add Token Scren
actions.showAddTokenPage()
},
style: Object.assign(
{},
@ -403,6 +403,9 @@ const mapDispatchToProps = (dispatch) => {
showNewAccountModal: () => {
dispatch(actions.showModal({ name: 'NEW_ACCOUNT' }))
},
showAddTokenPage: () => {
dispatch(actions.showAddTokenPage())
},
addNewAccount: () => dispatch(actions.addNewAccount()),
showImportPage: () => dispatch(actions.showImportPage()),
showQrView: (selected, identity) => dispatch(actions.showQrView(selected, identity)),

Loading…
Cancel
Save