diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-21 19:46:38 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-21 19:46:38 +0800 |
commit | d82233b95c5c3c4297a2d18b981ec6188de003c1 (patch) | |
tree | b56639a97156a6d1935c7eb0033c990f6999cad5 /ui/app/components/dropdowns | |
parent | 80a2cba38ef4fe6c01a624c5a504a7803b1a8316 (diff) | |
download | tangerine-wallet-browser-d82233b95c5c3c4297a2d18b981ec6188de003c1.tar tangerine-wallet-browser-d82233b95c5c3c4297a2d18b981ec6188de003c1.tar.gz tangerine-wallet-browser-d82233b95c5c3c4297a2d18b981ec6188de003c1.tar.bz2 tangerine-wallet-browser-d82233b95c5c3c4297a2d18b981ec6188de003c1.tar.lz tangerine-wallet-browser-d82233b95c5c3c4297a2d18b981ec6188de003c1.tar.xz tangerine-wallet-browser-d82233b95c5c3c4297a2d18b981ec6188de003c1.tar.zst tangerine-wallet-browser-d82233b95c5c3c4297a2d18b981ec6188de003c1.zip |
Hook up actions to EditAccountNameModal
Diffstat (limited to 'ui/app/components/dropdowns')
-rw-r--r-- | ui/app/components/dropdowns/components/account-dropdowns.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/app/components/dropdowns/components/account-dropdowns.js b/ui/app/components/dropdowns/components/account-dropdowns.js index 043789b6c..2854ec95d 100644 --- a/ui/app/components/dropdowns/components/account-dropdowns.js +++ b/ui/app/components/dropdowns/components/account-dropdowns.js @@ -115,7 +115,7 @@ class AccountDropdowns extends Component { fontSize: '16px', }, onClick: () => { - actions.showNewAccountModal() + actions.showEditAccountModal(identity) }, }, [ 'Edit', @@ -394,8 +394,14 @@ const mapDispatchToProps = (dispatch) => { showAccountDetailModal: () => { dispatch(actions.showModal({ name: 'ACCOUNT_DETAILS' })) }, + showEditAccountModal: (identity) => { + dispatch(actions.showModal({ + name: 'EDIT_ACCOUNT_NAME', + identity, + })) + }, showNewAccountModal: () => { - dispatch(actions.showModal({ name: 'EDIT_ACCOUNT_NAME' })) + dispatch(actions.showModal({ name: 'NEW_ACCOUNT' })) }, addNewAccount: () => dispatch(actions.addNewAccount()), showImportPage: () => dispatch(actions.showImportPage()), |