diff options
author | bitpshr <mail@bitpshr.net> | 2018-10-11 02:52:26 +0800 |
---|---|---|
committer | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-11-06 07:07:09 +0800 |
commit | 226601a956594d00817cdb1fa5214242aae7936c (patch) | |
tree | ca3b8a64b685599ef8ef26d4bf3396170949d122 /ui/app/components/modals | |
parent | bfcb73ad533b7c2acea012a586c2a391811faf03 (diff) | |
download | tangerine-wallet-browser-226601a956594d00817cdb1fa5214242aae7936c.tar tangerine-wallet-browser-226601a956594d00817cdb1fa5214242aae7936c.tar.gz tangerine-wallet-browser-226601a956594d00817cdb1fa5214242aae7936c.tar.bz2 tangerine-wallet-browser-226601a956594d00817cdb1fa5214242aae7936c.tar.lz tangerine-wallet-browser-226601a956594d00817cdb1fa5214242aae7936c.tar.xz tangerine-wallet-browser-226601a956594d00817cdb1fa5214242aae7936c.tar.zst tangerine-wallet-browser-226601a956594d00817cdb1fa5214242aae7936c.zip |
EIP-1102: add user privacy option
Diffstat (limited to 'ui/app/components/modals')
4 files changed, 0 insertions, 70 deletions
diff --git a/ui/app/components/modals/force-injection/force-injection.component.js b/ui/app/components/modals/force-injection/force-injection.component.js deleted file mode 100644 index 1ea08b5ee..000000000 --- a/ui/app/components/modals/force-injection/force-injection.component.js +++ /dev/null @@ -1,39 +0,0 @@ -import React, { PureComponent } from 'react' -import PropTypes from 'prop-types' -import Modal, { ModalContent } from '../../modal' - -export default class ForceInjection extends PureComponent { - static propTypes = { - hideModal: PropTypes.func.isRequired, - forceInjection: PropTypes.func.isRequired, - } - - static contextTypes = { - t: PropTypes.func, - } - - handleForce = () => { - const { forceInjection, hideModal } = this.props - forceInjection() - hideModal() - } - - render () { - const { t } = this.context - - return ( - <Modal - onSubmit={this.handleForce} - onCancel={() => this.props.hideModal()} - submitText={t('ok')} - cancelText={t('nevermind')} - submitType="secondary" - > - <ModalContent - title={t('exposeAccounts')} - description={t('confirmExpose')} - /> - </Modal> - ) - } -} diff --git a/ui/app/components/modals/force-injection/force-injection.container.js b/ui/app/components/modals/force-injection/force-injection.container.js deleted file mode 100644 index fa0a325c3..000000000 --- a/ui/app/components/modals/force-injection/force-injection.container.js +++ /dev/null @@ -1,16 +0,0 @@ -import { connect } from 'react-redux' -import { compose } from 'recompose' -import withModalProps from '../../../higher-order-components/with-modal-props' -import ForceInjectionComponent from './force-injection.component' -import { forceInjection } from '../../../actions' - -const mapDispatchToProps = dispatch => { - return { - forceInjection: () => dispatch(forceInjection()), - } -} - -export default compose( - withModalProps, - connect(null, mapDispatchToProps) -)(ForceInjectionComponent) diff --git a/ui/app/components/modals/force-injection/index.js b/ui/app/components/modals/force-injection/index.js deleted file mode 100644 index 4ea4dc695..000000000 --- a/ui/app/components/modals/force-injection/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from './force-injection.container' diff --git a/ui/app/components/modals/modal.js b/ui/app/components/modals/modal.js index bdf8e4b9e..5aff4f5e1 100644 --- a/ui/app/components/modals/modal.js +++ b/ui/app/components/modals/modal.js @@ -29,7 +29,6 @@ import CancelTransaction from './cancel-transaction' import WelcomeBeta from './welcome-beta' import RejectTransactions from './reject-transactions' import ClearApprovedOrigins from './clear-approved-origins' -import ForceInjection from './force-injection' const modalContainerBaseStyle = { transform: 'translate3d(-50%, 0, 0px)', @@ -227,19 +226,6 @@ const MODALS = { }, }, - FORCE_INJECTION: { - contents: h(ForceInjection), - mobileModalStyle: { - ...modalContainerMobileStyle, - }, - laptopModalStyle: { - ...modalContainerLaptopStyle, - }, - contentStyle: { - borderRadius: '8px', - }, - }, - OLD_UI_NOTIFICATION_MODAL: { contents: [ h(NotifcationModal, { |