1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 09:18:09 +00:00

Fixed eye tooltip position

This commit is contained in:
Vladimir Volek 2018-10-04 17:55:19 +02:00 committed by Szymon Lesisz
parent 9d00f423a5
commit 6b1aceff0e

View File

@ -167,34 +167,34 @@ const AccountReceive = (props: Props) => {
<AddressInfoText>Confirm address on TREZOR</AddressInfoText>
)}
{((addressVerified || addressUnverified) && !isAddressVerifying) && (
<Tooltip
placement="bottomRight"
content={(
<React.Fragment>
{addressUnverified ? (
<React.Fragment>
Unverified address.
<br />
{device.connected && device.available ? 'Show on TREZOR' : 'Connect your TREZOR to verify it.'}
</React.Fragment>
) : (
<React.Fragment>
{device.connected ? 'Show on TREZOR' : 'Connect your TREZOR to verify address.'}
</React.Fragment>
)}
</React.Fragment>
)}
<EyeButton
isTransparent
onClick={() => props.showAddress(account.addressPath)}
>
<EyeButton
isTransparent
onClick={() => props.showAddress(account.addressPath)}
<Tooltip
placement="bottom"
content={(
<React.Fragment>
{addressUnverified ? (
<React.Fragment>
Unverified address.
{device.connected && device.available ? 'Show on TREZOR' : 'Connect your TREZOR to verify it.'}
</React.Fragment>
) : (
<React.Fragment>
{device.connected ? 'Show on TREZOR' : 'Connect your TREZOR to verify address.'}
</React.Fragment>
)}
</React.Fragment>
)}
>
<Icon
icon={addressUnverified ? ICONS.EYE_CROSSED : ICONS.EYE}
color={addressUnverified ? colors.ERROR_PRIMARY : colors.TEXT_PRIMARY}
/>
</EyeButton>
</Tooltip>
</Tooltip>
</EyeButton>
)}
<ValueWrapper
isHidden={isAddressHidden}