From 262d1f4bf98403aa68fb5590d9fcf1c63779749a Mon Sep 17 00:00:00 2001 From: Anastasia Poupeney Date: Wed, 6 Jun 2018 11:16:36 +0200 Subject: [PATCH] remove not needed anymore component --- src/components/DeviceCheckAddress.js | 39 ------------------- .../modals/Receive/03-step-confirm-address.js | 9 +---- 2 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 src/components/DeviceCheckAddress.js diff --git a/src/components/DeviceCheckAddress.js b/src/components/DeviceCheckAddress.js deleted file mode 100644 index e2121b06..00000000 --- a/src/components/DeviceCheckAddress.js +++ /dev/null @@ -1,39 +0,0 @@ -// @flow - -import { PureComponent } from 'react' - -type Props = { - render: ({ isVerified?: ?boolean }) => *, -} - -type State = { - isVerified: null | boolean, -} - -class CheckAddress extends PureComponent { - state = { - isVerified: null, - } - - componentWillUnmount() { - this._isUnmounted = true - } - - _isUnmounted = false - - safeSetState = (...args: *) => { - if (this._isUnmounted) { - return - } - this.setState(...args) - } - - render() { - const { render } = this.props - const { isVerified } = this.state - - return render({ isVerified }) - } -} - -export default CheckAddress diff --git a/src/components/modals/Receive/03-step-confirm-address.js b/src/components/modals/Receive/03-step-confirm-address.js index d356374b..30885933 100644 --- a/src/components/modals/Receive/03-step-confirm-address.js +++ b/src/components/modals/Receive/03-step-confirm-address.js @@ -9,7 +9,6 @@ import type { Device, T } from 'types/common' import Box from 'components/base/Box' import CurrentAddressForAccount from 'components/CurrentAddressForAccount' import DeviceConfirm from 'components/DeviceConfirm' -import DeviceCheckAddress from 'components/DeviceCheckAddress' const Container = styled(Box).attrs({ alignItems: 'center', @@ -51,13 +50,7 @@ export default (props: Props) => ( {props.t('receive:steps.confirmAddress.text')} {props.account && } {props.device && - props.account && ( - - } - /> - - )} + props.account && } )}