diff options
author | Dan <danjm.com@gmail.com> | 2018-06-03 17:16:45 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-06-03 17:16:45 +0800 |
commit | 8f0a3b83111a9ccf5d515cebbd33cabe9ab16ba7 (patch) | |
tree | 5ab993280fa87add44aad288f155a0ce3b7a0da7 /ui/app/components/modals/notification-modals/confirm-reset-account.js | |
parent | 0f3480a97f2924de899e49a095ef24b9fa5506f1 (diff) | |
parent | 72dde75e58b2aaec22e41b2fe742bee7e9c35777 (diff) | |
download | tangerine-wallet-browser-8f0a3b83111a9ccf5d515cebbd33cabe9ab16ba7.tar.gz tangerine-wallet-browser-8f0a3b83111a9ccf5d515cebbd33cabe9ab16ba7.tar.zst tangerine-wallet-browser-8f0a3b83111a9ccf5d515cebbd33cabe9ab16ba7.zip |
Merge branch 'develop' into handle-import-account-failure-in-ui
Diffstat (limited to 'ui/app/components/modals/notification-modals/confirm-reset-account.js')
-rw-r--r-- | ui/app/components/modals/notification-modals/confirm-reset-account.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/ui/app/components/modals/notification-modals/confirm-reset-account.js b/ui/app/components/modals/notification-modals/confirm-reset-account.js deleted file mode 100644 index 89fa9bef1..000000000 --- a/ui/app/components/modals/notification-modals/confirm-reset-account.js +++ /dev/null @@ -1,46 +0,0 @@ -const { Component } = require('react') -const PropTypes = require('prop-types') -const h = require('react-hyperscript') -const connect = require('react-redux').connect -const actions = require('../../../actions') -const NotifcationModal = require('../notification-modal') - -class ConfirmResetAccount extends Component { - render () { - const { resetAccount } = this.props - - return h(NotifcationModal, { - header: 'Are you sure you want to reset account?', - message: h('div', [ - - h('span', `Resetting is for developer use only. This button wipes the current account's transaction history, - which is used to calculate the current account nonce. `), - - h('a.notification-modal__link', { - href: 'http://metamask.helpscoutdocs.com/article/36-resetting-an-account', - target: '_blank', - onClick (event) { global.platform.openWindow({ url: event.target.href }) }, - }, 'Read more.'), - - ]), - showCancelButton: true, - showConfirmButton: true, - onConfirm: resetAccount, - - }) - } -} - -ConfirmResetAccount.propTypes = { - resetAccount: PropTypes.func, -} - -const mapDispatchToProps = dispatch => { - return { - resetAccount: () => { - dispatch(actions.resetAccount()) - }, - } -} - -module.exports = connect(null, mapDispatchToProps)(ConfirmResetAccount) |