1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-25 16:38:08 +00:00

fixed conflicts in AccountReceive component

This commit is contained in:
Szymon Lesisz 2018-10-01 15:44:05 +02:00
parent 7083c6e0d1
commit 740e7ef473

View File

@ -133,10 +133,9 @@ const AccountReceive = (props: Props) => {
const {
account,
discovery,
shouldRender,
} = props.selectedAccount;
if (!device || !account || !discovery || !shouldRender) return null;
if (!device || !account || !discovery) return null;
const {
addressVerified,
@ -158,9 +157,6 @@ const AccountReceive = (props: Props) => {
<AddressWrapper
isShowingQrCode={addressVerified || addressUnverified}
>
{isAddressVerifying && (
<AddressInfoText>Confirm address on TREZOR</AddressInfoText>
)}
{((addressVerified || addressUnverified) && !isAddressVerifying) && (
<Tooltip
placement="bottomRight"
@ -197,8 +193,20 @@ const AccountReceive = (props: Props) => {
>{address}
</ValueWrapper>
{isAddressVerifying && (
<AddressInfoText>{account.network} account #{account.index + 1}</AddressInfoText>
<React.Fragment>
<ArrowUp />
<AddressInfoText>
<Icon
icon={ICONS.T1}
color={colors.WHITE}
/>
Check address on your Trezor
</AddressInfoText>
</React.Fragment>
)}
{/* {isAddressVerifying && (
<AddressInfoText>{account.network} account #{account.index + 1}</AddressInfoText>
)} */}
{(addressVerified || addressUnverified) && (
<QRCode
bgColor="#FFFFFF"
@ -225,4 +233,4 @@ const AccountReceive = (props: Props) => {
);
};
export default AccountReceive;
export default AccountReceive;