aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/account-menu
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-11 07:19:29 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-11 07:19:29 +0800
commitb9c2994d24e688305d63aaefd7fac88d88773ad9 (patch)
tree84ead9430283666999f20aef1cfcbda41de80854 /ui/app/components/account-menu
parent9b81180ab10cf8ca59666104e862c0331e953591 (diff)
downloadtangerine-wallet-browser-b9c2994d24e688305d63aaefd7fac88d88773ad9.tar
tangerine-wallet-browser-b9c2994d24e688305d63aaefd7fac88d88773ad9.tar.gz
tangerine-wallet-browser-b9c2994d24e688305d63aaefd7fac88d88773ad9.tar.bz2
tangerine-wallet-browser-b9c2994d24e688305d63aaefd7fac88d88773ad9.tar.lz
tangerine-wallet-browser-b9c2994d24e688305d63aaefd7fac88d88773ad9.tar.xz
tangerine-wallet-browser-b9c2994d24e688305d63aaefd7fac88d88773ad9.tar.zst
tangerine-wallet-browser-b9c2994d24e688305d63aaefd7fac88d88773ad9.zip
finish warning modal UI
Diffstat (limited to 'ui/app/components/account-menu')
-rw-r--r--ui/app/components/account-menu/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/components/account-menu/index.js b/ui/app/components/account-menu/index.js
index 9530d6aeb..b561ea186 100644
--- a/ui/app/components/account-menu/index.js
+++ b/ui/app/components/account-menu/index.js
@@ -68,6 +68,9 @@ function mapDispatchToProps (dispatch) {
dispatch(actions.hideSidebar())
dispatch(actions.toggleAccountMenu())
},
+ showForgetAccountConfirmationModal: (address) => {
+ return dispatch(actions.showModal({ name: 'CONFIRM_FORGET_ACCOUNT', address }))
+ },
}
}
@@ -204,7 +207,9 @@ AccountMenu.prototype.renderForgetAccount = function (keyring, address) {
AccountMenu.prototype.forgetAccount = function (e, address) {
e.preventDefault()
e.stopPropagation()
+ const { showForgetAccountConfirmationModal } = this.props
console.log('should forget address: ', address)
+ showForgetAccountConfirmationModal(address)
}
AccountMenu.prototype.renderKeyringType = function (keyring) {