1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
This commit is contained in:
brunobar79 2018-07-11 01:35:37 -04:00
parent 523cf9ad33
commit 5a2a34591f
3 changed files with 6 additions and 6 deletions

View File

@ -69,7 +69,7 @@ function mapDispatchToProps (dispatch) {
dispatch(actions.toggleAccountMenu())
},
showRemoveAccountConfirmationModal: (address) => {
return dispatch(actions.showModal({ name: 'CONFIRM_FORGET_ACCOUNT', address }))
return dispatch(actions.showModal({ name: 'CONFIRM_REMOVE_ACCOUNT', address }))
},
}
}
@ -199,10 +199,10 @@ AccountMenu.prototype.renderAccounts = function () {
}
AccountMenu.prototype.renderRemoveAccount = function (keyring, address) {
// Any account that's not form the HD wallet can be forgotten
// Any account that's not from the HD wallet Keyring can be removed
const type = keyring.type
const isRemovable = type !== 'HD Key Tree'
return isRemovable ? h('a.forget-account-icon', { onClick: (e) => this.removeAccount(e, address) }, '') : null
return isRemovable ? h('a.remove-account-icon', { onClick: (e) => this.removeAccount(e, address) }, '') : null
}
AccountMenu.prototype.removeAccount = function (e, address) {

View File

@ -242,7 +242,7 @@ const MODALS = {
},
},
CONFIRM_FORGET_ACCOUNT: {
CONFIRM_REMOVE_ACCOUNT: {
contents: h(ConfirmRemoveAccount),
mobileModalStyle: {
...modalContainerMobileStyle,

View File

@ -86,14 +86,14 @@
padding: 12px 14px;
}
.forget-account-icon {
.remove-account-icon {
width: 25px;
padding-left: 10px;
height: 25px;
}
&:hover {
.forget-account-icon::after {
.remove-account-icon::after {
content: '\00D7';
font-size: 25px;
color: $white;