mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-25 00:18:07 +00:00
fixed conflicts in AccountReceive component
This commit is contained in:
parent
7083c6e0d1
commit
740e7ef473
@ -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;
|
Loading…
Reference in New Issue
Block a user