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