From dd6117b008cb22de1efc27a82eaec37ce26708f1 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Mon, 5 Nov 2018 17:54:07 +0100 Subject: [PATCH] Confirm moved to modals --- src/components/modals/confirm/Action/index.js | 21 +++++++++++++++ .../modals/confirm/Address/index.js | 2 +- src/components/modals/index.js | 4 +++ src/reducers/SignVerifyReducer.js | 1 + .../Wallet/views/Account/Receive/index.js | 1 - .../Wallet/views/Account/SignVerify/index.js | 27 ------------------- 6 files changed, 27 insertions(+), 29 deletions(-) create mode 100644 src/components/modals/confirm/Action/index.js diff --git a/src/components/modals/confirm/Action/index.js b/src/components/modals/confirm/Action/index.js new file mode 100644 index 00000000..9a8f9947 --- /dev/null +++ b/src/components/modals/confirm/Action/index.js @@ -0,0 +1,21 @@ +/* @flow */ + +import React from 'react'; +import styled from 'styled-components'; +import { H3 } from 'components/Heading'; + +const Wrapper = styled.div``; + +const Header = styled.div` + padding: 48px; +`; + +const ConfirmAction = () => ( + +
+

Confirm Action on your Trezor

+
+
+); + +export default ConfirmAction; \ No newline at end of file diff --git a/src/components/modals/confirm/Address/index.js b/src/components/modals/confirm/Address/index.js index 05314500..f47c18e9 100644 --- a/src/components/modals/confirm/Address/index.js +++ b/src/components/modals/confirm/Address/index.js @@ -7,7 +7,7 @@ import styled from 'styled-components'; import colors from 'config/colors'; import { FONT_SIZE } from 'config/variables'; -import H3 from 'components/Heading'; +import { H3 } from 'components/Heading'; import P from 'components/Paragraph'; import type { Props } from '../../Container'; diff --git a/src/components/modals/index.js b/src/components/modals/index.js index 54e37ae8..018d10d4 100644 --- a/src/components/modals/index.js +++ b/src/components/modals/index.js @@ -17,6 +17,7 @@ import InvalidPin from 'components/modals/pin/Invalid'; import Passphrase from 'components/modals/passphrase/Passphrase'; import PassphraseType from 'components/modals/passphrase/Type'; import ConfirmSignTx from 'components/modals/confirm/SignTx'; +import ConfirmAction from 'components/modals/confirm/Action'; import ConfirmUnverifiedAddress from 'components/modals/confirm/UnverifiedAddress'; import ForgetDevice from 'components/modals/device/Forget'; import RememberDevice from 'components/modals/device/Remember'; @@ -90,6 +91,9 @@ const getDeviceContextModal = (props: Props) => { case 'ButtonRequest_SignTx': return ; + case 'ButtonRequest_Other': + return ; + case RECEIVE.REQUEST_UNVERIFIED: return ( { rows={4} maxRows={4} maxLength="255" - trezorAction={this.props.isSignProgress ? ( - - - Check address on your Trezor - - ) : null} /> @@ -189,15 +180,6 @@ class SignVerify extends Component { state={(this.state.verifyAddress && validateAddress(this.state.verifyAddress)) ? 'error' : null} bottomText={this.state.verifyAddress !== '' ? validateAddress(this.state.verifyAddress) : null} isSmallText - trezorAction={this.props.isVerifyProgress ? ( - - - Check address on your Trezor - - ) : null} /> @@ -209,15 +191,6 @@ class SignVerify extends Component { rows={4} maxRows={4} maxLength="255" - trezorAction={this.props.isVerifyProgress ? ( - - - Check address on your Trezor - - ) : null} />