Merge pull request #92 from satoshilabs/receive-address-notification

enhancement: receive address notification
pull/97/head
Vladimir Volek 6 years ago committed by GitHub
commit badf140006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -62,23 +62,40 @@ const ValueWrapper = styled.div`
`};
${props => props.isVerifying && css`
background: ${colors.WHITE};
z-index: 10001; /* bigger than modal container */
border-color: ${colors.GREEN_PRIMARY};
border-color: ${colors.WHITE};
border-width: 2px;
transform: translate(-1px, -1px);
background: ${colors.DIVIDER};
`};
`;
const ArrowUp = styled.div`
position: absolute;
top: 30px;
left: 70px;
width: 0;
height: 0;
border-left: 9px solid transparent;
border-right: 9px solid transparent;
border-bottom: 9px solid black;
z-index: 10001;
`;
const AddressInfoText = styled.div`
display: block;
position: relative;
background: ${colors.WHITE};
display: flex;
align-items: center;
height: 37px;
margin: 0px 2px;
padding: 0 14px 0 5px;
position: absolute;
top: 39px;
background: black;
color: ${colors.WHITE};
border-radius: 5px;
line-height: 37px;
z-index: 10001;
width: 100%;
padding: 6px 12px;
transform: translate(-1px, -1px);
margin: 0px 2px;
`;
const ShowAddressButton = styled(Button)`
@ -143,9 +160,6 @@ const AccountReceive = (props: Props) => {
<AddressWrapper
isShowingQrCode={addressVerified || addressUnverified}
>
{isAddressVerifying && (
<AddressInfoText>Confirm address on TREZOR</AddressInfoText>
)}
{((addressVerified || addressUnverified) && !isAddressVerifying) && (
<Tooltip
placement="bottomRight"
@ -182,8 +196,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"

Loading…
Cancel
Save