aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/actions.js3
-rw-r--r--ui/app/components/dropdowns/components/account-dropdowns.js5
2 files changed, 5 insertions, 3 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index b7b66f9ad..110e77ada 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -648,10 +648,9 @@ function showConfigPage (transitionForward = true) {
}
}
-function showAddTokenPage (transitionForward = true) {
+function showAddTokenPage () {
return {
type: actions.SHOW_ADD_TOKEN_PAGE,
- value: transitionForward,
}
}
diff --git a/ui/app/components/dropdowns/components/account-dropdowns.js b/ui/app/components/dropdowns/components/account-dropdowns.js
index 2854ec95d..c340fdaed 100644
--- a/ui/app/components/dropdowns/components/account-dropdowns.js
+++ b/ui/app/components/dropdowns/components/account-dropdowns.js
@@ -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)),