diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-06-02 07:03:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-02 07:03:56 +0800 |
commit | 4be8e780cd64014d07c036c29faa77f947437c4a (patch) | |
tree | 37c76b1bbad225adc70f45a8fd17e8718e2b6453 /ui/app/components/modals/notification-modals/confirm-reset-account.js | |
parent | dc5477be3cc62dff912a9447c702edab66200f02 (diff) | |
parent | b1b90a6bb979cbda8b865e680dba621201d9f801 (diff) | |
download | tangerine-wallet-browser-4be8e780cd64014d07c036c29faa77f947437c4a.tar.gz tangerine-wallet-browser-4be8e780cd64014d07c036c29faa77f947437c4a.tar.zst tangerine-wallet-browser-4be8e780cd64014d07c036c29faa77f947437c4a.zip |
Merge pull request #4449 from MetaMask/Version-4.7.1
Version 4.7.1
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) |