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> <AddressInfoText>Confirm address on TREZOR</AddressInfoText>
)} )}
{((addressVerified || addressUnverified) && !isAddressVerifying) && ( {((addressVerified || addressUnverified) && !isAddressVerifying) && (
<Tooltip
placement="bottomRight" <EyeButton
content={( isTransparent
<React.Fragment> onClick={() => props.showAddress(account.addressPath)}
{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 <Tooltip
isTransparent placement="bottom"
onClick={() => props.showAddress(account.addressPath)} 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
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}