aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/notification-modals
diff options
context:
space:
mode:
authorPhyrexTsai <x01ep23i@hotmail.com>2018-06-01 15:41:18 +0800
committerGitHub <noreply@github.com>2018-06-01 15:41:18 +0800
commitf90d07019081695ef3d697c5af0ae2bee3bb1637 (patch)
treef7c68bb9bcaaddc035c6595bb78fcba98d6cfd1c /ui/app/components/modals/notification-modals
parentcc5bdadbf1f12f3f8d7f24f9bcf7ea81fe93f012 (diff)
parentcc73d869fed79c63261821fb7ad8f1e5180ffca2 (diff)
downloadtangerine-wallet-browser-f90d07019081695ef3d697c5af0ae2bee3bb1637.tar.gz
tangerine-wallet-browser-f90d07019081695ef3d697c5af0ae2bee3bb1637.tar.zst
tangerine-wallet-browser-f90d07019081695ef3d697c5af0ae2bee3bb1637.zip
Merge branch 'develop' into portal-metamask
Diffstat (limited to 'ui/app/components/modals/notification-modals')
-rw-r--r--ui/app/components/modals/notification-modals/confirm-reset-account.js46
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)