diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-12 12:23:08 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-12 12:23:08 +0800 |
commit | 2a0a7853249284cb27831890f3b62847ea27eb83 (patch) | |
tree | ee2ad99eb372bb47993c77791a77c0b99bff50b2 /ui/app | |
parent | 80e875308b4447ed38d7e0f677570d73956dd9de (diff) | |
download | tangerine-wallet-browser-2a0a7853249284cb27831890f3b62847ea27eb83.tar tangerine-wallet-browser-2a0a7853249284cb27831890f3b62847ea27eb83.tar.gz tangerine-wallet-browser-2a0a7853249284cb27831890f3b62847ea27eb83.tar.bz2 tangerine-wallet-browser-2a0a7853249284cb27831890f3b62847ea27eb83.tar.lz tangerine-wallet-browser-2a0a7853249284cb27831890f3b62847ea27eb83.tar.xz tangerine-wallet-browser-2a0a7853249284cb27831890f3b62847ea27eb83.tar.zst tangerine-wallet-browser-2a0a7853249284cb27831890f3b62847ea27eb83.zip |
added tooltip
Diffstat (limited to 'ui/app')
3 files changed, 16 insertions, 5 deletions
diff --git a/ui/app/components/account-menu/index.js b/ui/app/components/account-menu/index.js index c15ecbc9c..c5b577cfd 100644 --- a/ui/app/components/account-menu/index.js +++ b/ui/app/components/account-menu/index.js @@ -11,6 +11,7 @@ const Identicon = require('../identicon') const { formatBalance } = require('../../util') const { ENVIRONMENT_TYPE_POPUP } = require('../../../../app/scripts/lib/enums') const { getEnvironmentType } = require('../../../../app/scripts/lib/util') +const Tooltip = require('../tooltip') const { @@ -202,7 +203,17 @@ AccountMenu.prototype.renderRemoveAccount = function (keyring, address) { // 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.remove-account-icon', { onClick: (e) => this.removeAccount(e, address) }, '') : null + if (isRemovable) { + return h(Tooltip, { + title: this.context.t('removeAccount'), + position: 'bottom', + }, [ + h('a.remove-account-icon', { + onClick: (e) => this.removeAccount(e, address), + }, ''), + ]) + } + return null } AccountMenu.prototype.removeAccount = function (e, address) { diff --git a/ui/app/components/modals/confirm-remove-account/confirm-remove-account.component.js b/ui/app/components/modals/confirm-remove-account/confirm-remove-account.component.js index 93be2a4e7..d6c0c796d 100644 --- a/ui/app/components/modals/confirm-remove-account/confirm-remove-account.component.js +++ b/ui/app/components/modals/confirm-remove-account/confirm-remove-account.component.js @@ -26,7 +26,7 @@ class ConfirmRemoveAccount extends Component { <div className="modal-container"> <div className="modal-container__content"> <div className="modal-container__title"> - { `${t('removeAccount')}` } + { `${t('removeAccount')}` }? </div> <div className="modal-container__address"> {addressSummary(this.props.address)} diff --git a/ui/app/css/itcss/components/account-menu.scss b/ui/app/css/itcss/components/account-menu.scss index 9bce812e6..b14753e23 100644 --- a/ui/app/css/itcss/components/account-menu.scss +++ b/ui/app/css/itcss/components/account-menu.scss @@ -87,9 +87,9 @@ } .remove-account-icon { - width: 25px; - padding-left: 10px; - height: 25px; + width: 15px; + margin-left: 10px; + height: 15px; } &:hover { |