aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/account-menu
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-13 01:19:51 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-13 01:19:51 +0800
commit4b528405eac7cea54c743307e6f577abd6ce9507 (patch)
treed92bd22a4699f80302e045337d3d07945096dec0 /ui/app/components/account-menu
parent07d8bfaec51a798e090bd2521debeddaf53bf2f9 (diff)
downloadtangerine-wallet-browser-4b528405eac7cea54c743307e6f577abd6ce9507.tar.gz
tangerine-wallet-browser-4b528405eac7cea54c743307e6f577abd6ce9507.tar.zst
tangerine-wallet-browser-4b528405eac7cea54c743307e6f577abd6ce9507.zip
catching up with develop
Diffstat (limited to 'ui/app/components/account-menu')
-rw-r--r--ui/app/components/account-menu/index.js14
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) {