Merge pull request #511 from trezor/fix/tooltip-position

fix ripple tooltip position
pull/514/head
Maroš 5 years ago committed by GitHub
commit 502ccf0a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -59,7 +59,7 @@ const ShowAddressButton = styled(Button)`
const EyeButton = styled(Button)` const EyeButton = styled(Button)`
z-index: 10001; z-index: 10001;
padding: 0; padding: 0;
top: 12px; top: 10px;
position: absolute; position: absolute;
right: 10px; right: 10px;
@ -141,8 +141,13 @@ const AccountReceive = (props: Props) => {
icon={ icon={
(addressVerified || addressUnverified) && (addressVerified || addressUnverified) &&
!isAddressVerifying && ( !isAddressVerifying && (
<EyeButton
isTransparent
onClick={() => props.showAddress(account.accountPath)}
>
{' '}
<Tooltip <Tooltip
placement="left" placement="top"
content={ content={
<VerifyAddressTooltip <VerifyAddressTooltip
isConnected={device.connected} isConnected={device.connected}
@ -150,10 +155,6 @@ const AccountReceive = (props: Props) => {
addressUnverified={addressUnverified} addressUnverified={addressUnverified}
/> />
} }
>
<EyeButton
isTransparent
onClick={() => props.showAddress(account.accountPath)}
> >
<Icon <Icon
size={16} size={16}
@ -168,8 +169,8 @@ const AccountReceive = (props: Props) => {
: colors.TEXT_PRIMARY : colors.TEXT_PRIMARY
} }
/> />
</EyeButton>
</Tooltip> </Tooltip>
</EyeButton>
) )
} }
/> />

Loading…
Cancel
Save