diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-13 01:19:51 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-13 01:19:51 +0800 |
commit | 4b528405eac7cea54c743307e6f577abd6ce9507 (patch) | |
tree | d92bd22a4699f80302e045337d3d07945096dec0 /ui/app/components/account-menu/index.js | |
parent | 07d8bfaec51a798e090bd2521debeddaf53bf2f9 (diff) | |
download | tangerine-wallet-browser-4b528405eac7cea54c743307e6f577abd6ce9507.tar tangerine-wallet-browser-4b528405eac7cea54c743307e6f577abd6ce9507.tar.gz tangerine-wallet-browser-4b528405eac7cea54c743307e6f577abd6ce9507.tar.bz2 tangerine-wallet-browser-4b528405eac7cea54c743307e6f577abd6ce9507.tar.lz tangerine-wallet-browser-4b528405eac7cea54c743307e6f577abd6ce9507.tar.xz tangerine-wallet-browser-4b528405eac7cea54c743307e6f577abd6ce9507.tar.zst tangerine-wallet-browser-4b528405eac7cea54c743307e6f577abd6ce9507.zip |
catching up with develop
Diffstat (limited to 'ui/app/components/account-menu/index.js')
-rw-r--r-- | ui/app/components/account-menu/index.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/app/components/account-menu/index.js b/ui/app/components/account-menu/index.js index c5b577cfd..fc48b60f3 100644 --- a/ui/app/components/account-menu/index.js +++ b/ui/app/components/account-menu/index.js @@ -69,8 +69,8 @@ function mapDispatchToProps (dispatch) { dispatch(actions.hideSidebar()) dispatch(actions.toggleAccountMenu()) }, - showRemoveAccountConfirmationModal: (address) => { - return dispatch(actions.showModal({ name: 'CONFIRM_REMOVE_ACCOUNT', address })) + showRemoveAccountConfirmationModal: (identity) => { + return dispatch(actions.showModal({ name: 'CONFIRM_REMOVE_ACCOUNT', identity })) }, } } @@ -193,13 +193,13 @@ AccountMenu.prototype.renderAccounts = function () { ]), this.renderKeyringType(keyring), - this.renderRemoveAccount(keyring, identity.address), + this.renderRemoveAccount(keyring, identity), ], ) }) } -AccountMenu.prototype.renderRemoveAccount = function (keyring, address) { +AccountMenu.prototype.renderRemoveAccount = function (keyring, identity) { // Any account that's not from the HD wallet Keyring can be removed const type = keyring.type const isRemovable = type !== 'HD Key Tree' @@ -209,18 +209,18 @@ AccountMenu.prototype.renderRemoveAccount = function (keyring, address) { position: 'bottom', }, [ h('a.remove-account-icon', { - onClick: (e) => this.removeAccount(e, address), + onClick: (e) => this.removeAccount(e, identity), }, ''), ]) } return null } -AccountMenu.prototype.removeAccount = function (e, address) { +AccountMenu.prototype.removeAccount = function (e, identity) { e.preventDefault() e.stopPropagation() const { showRemoveAccountConfirmationModal } = this.props - showRemoveAccountConfirmationModal(address) + showRemoveAccountConfirmationModal(identity) } AccountMenu.prototype.renderKeyringType = function (keyring) { |