From 5a2a34591f8ab2aec3a056d5bb9e38ba5236cd07 Mon Sep 17 00:00:00 2001 From: brunobar79 Date: Wed, 11 Jul 2018 01:35:37 -0400 Subject: clean up --- ui/app/components/account-menu/index.js | 6 +++--- ui/app/components/modals/modal.js | 2 +- ui/app/css/itcss/components/account-menu.scss | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'ui/app') diff --git a/ui/app/components/account-menu/index.js b/ui/app/components/account-menu/index.js index 73450c1bd..c15ecbc9c 100644 --- a/ui/app/components/account-menu/index.js +++ b/ui/app/components/account-menu/index.js @@ -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) { diff --git a/ui/app/components/modals/modal.js b/ui/app/components/modals/modal.js index 9ace56661..e40944165 100644 --- a/ui/app/components/modals/modal.js +++ b/ui/app/components/modals/modal.js @@ -242,7 +242,7 @@ const MODALS = { }, }, - CONFIRM_FORGET_ACCOUNT: { + CONFIRM_REMOVE_ACCOUNT: { contents: h(ConfirmRemoveAccount), mobileModalStyle: { ...modalContainerMobileStyle, diff --git a/ui/app/css/itcss/components/account-menu.scss b/ui/app/css/itcss/components/account-menu.scss index ba5d176ef..9bce812e6 100644 --- a/ui/app/css/itcss/components/account-menu.scss +++ b/ui/app/css/itcss/components/account-menu.scss @@ -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; -- cgit v1.2.3