From 9d69401041368ec5e3754f80d33fe69687c8e9cf Mon Sep 17 00:00:00 2001 From: sdtsui Date: Tue, 22 Aug 2017 16:25:23 -0700 Subject: Hook up showAddToken to dropdown menu item in account options dropdown --- ui/app/components/dropdowns/components/account-dropdowns.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ui/app/components') 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)), -- cgit v1.2.3