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

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

@ -53,7 +53,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;
@ -135,8 +135,12 @@ 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}
@ -144,10 +148,6 @@ const AccountReceive = (props: Props) => {
addressUnverified={addressUnverified} addressUnverified={addressUnverified}
/> />
} }
>
<EyeButton
isTransparent
onClick={() => props.showAddress(account.accountPath)}
> >
<Icon <Icon
size={16} size={16}
@ -162,8 +162,8 @@ const AccountReceive = (props: Props) => {
: colors.TEXT_PRIMARY : colors.TEXT_PRIMARY
} }
/> />
</EyeButton>
</Tooltip> </Tooltip>
</EyeButton>
) )
} }
/> />

Loading…
Cancel
Save