From ebce4562df8274b524fa001eeeca6c704fe018ee Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Wed, 5 Dec 2018 10:58:54 +0100 Subject: [PATCH] add Tittle to receive component --- .../views/Account/Receive/ethereum/index.js | 114 +++++++++--------- .../views/Account/Receive/ripple/index.js | 114 +++++++++--------- 2 files changed, 112 insertions(+), 116 deletions(-) diff --git a/src/views/Wallet/views/Account/Receive/ethereum/index.js b/src/views/Wallet/views/Account/Receive/ethereum/index.js index b0666921..d6e976c5 100644 --- a/src/views/Wallet/views/Account/Receive/ethereum/index.js +++ b/src/views/Wallet/views/Account/Receive/ethereum/index.js @@ -4,7 +4,7 @@ import { QRCode } from 'react-qr-svg'; import styled from 'styled-components'; import media from 'styled-media-query'; -import { H2 } from 'components/Heading'; +import Title from 'views/Wallet/components/Title'; import Button from 'components/Button'; import Icon from 'components/Icon'; import Tooltip from 'components/Tooltip'; @@ -113,66 +113,64 @@ const AccountReceive = (props: Props) => { return ( - -

Receive Ethereum or tokens

- - - - - Receive Ethereum or tokens + + + + + + Check address on your Trezor +
+ ) : null} + icon={((addressVerified || addressUnverified) && !isAddressVerifying) && ( + - Check address on your Trezor - - ) : null} - icon={((addressVerified || addressUnverified) && !isAddressVerifying) && ( - - )} - > - props.showAddress(account.addressPath)}> - - - - )} - /> - {!(addressVerified || addressUnverified) && ( - props.showAddress(account.addressPath)} isDisabled={device.connected && !discovery.completed}> - Show full address - + )} + > + props.showAddress(account.addressPath)}> + + + )} - - {(addressVerified || addressUnverified) && !isAddressVerifying && ( - - - - + /> + {!(addressVerified || addressUnverified) && ( + props.showAddress(account.addressPath)} isDisabled={device.connected && !discovery.completed}> + Show full address + )} - - + + {(addressVerified || addressUnverified) && !isAddressVerifying && ( + + + + + )} +
); }; diff --git a/src/views/Wallet/views/Account/Receive/ripple/index.js b/src/views/Wallet/views/Account/Receive/ripple/index.js index db7974b6..723634b9 100644 --- a/src/views/Wallet/views/Account/Receive/ripple/index.js +++ b/src/views/Wallet/views/Account/Receive/ripple/index.js @@ -4,7 +4,7 @@ import { QRCode } from 'react-qr-svg'; import styled from 'styled-components'; import media from 'styled-media-query'; -import { H2 } from 'components/Heading'; +import Title from 'views/Wallet/components/Title'; import Button from 'components/Button'; import Icon from 'components/Icon'; import Tooltip from 'components/Tooltip'; @@ -113,66 +113,64 @@ const AccountReceive = (props: Props) => { return ( - -

Receive Ripple

- - - - - Receive Ripple + + + + + + Check address on your Trezor +
+ ) : null} + icon={((addressVerified || addressUnverified) && !isAddressVerifying) && ( + - Check address on your Trezor - - ) : null} - icon={((addressVerified || addressUnverified) && !isAddressVerifying) && ( - - )} - > - props.showAddress(account.addressPath)}> - - - - )} - /> - {!(addressVerified || addressUnverified) && ( - props.showAddress(account.addressPath)} isDisabled={device.connected && !discovery.completed}> - Show full address - + )} + > + props.showAddress(account.addressPath)}> + + + )} - - {(addressVerified || addressUnverified) && !isAddressVerifying && ( - - - - + /> + {!(addressVerified || addressUnverified) && ( + props.showAddress(account.addressPath)} isDisabled={device.connected && !discovery.completed}> + Show full address + )} - - + + {(addressVerified || addressUnverified) && !isAddressVerifying && ( + + + + + )} +
); };