Commit 371f60e2 authored by tom's avatar tom

hide metamask icon in tables

Fixes #1415
parent ea9e0cd5
...@@ -22,7 +22,13 @@ const ERC20TokensTableItem = ({ ...@@ -22,7 +22,13 @@ const ERC20TokensTableItem = ({
} = getCurrencyValue({ value: value, exchangeRate: token.exchange_rate, decimals: token.decimals, accuracy: 8, accuracyUsd: 2 }); } = getCurrencyValue({ value: value, exchangeRate: token.exchange_rate, decimals: token.decimals, accuracy: 8, accuracyUsd: 2 });
return ( return (
<Tr> <Tr
sx={{
'&:hover [aria-label="Add token to wallet"]': {
opacity: 1,
},
}}
>
<Td verticalAlign="middle"> <Td verticalAlign="middle">
<TokenEntity <TokenEntity
token={ token } token={ token }
...@@ -39,7 +45,7 @@ const ERC20TokensTableItem = ({ ...@@ -39,7 +45,7 @@ const ERC20TokensTableItem = ({
isLoading={ isLoading } isLoading={ isLoading }
noIcon noIcon
/> />
<AddressAddToWallet token={ token } ml={ 4 } isLoading={ isLoading }/> <AddressAddToWallet token={ token } ml={ 4 } isLoading={ isLoading } opacity="0"/>
</Flex> </Flex>
</Td> </Td>
<Td isNumeric verticalAlign="middle"> <Td isNumeric verticalAlign="middle">
......
...@@ -106,7 +106,7 @@ const AddressAddToWallet = ({ className, token, isLoading, variant = 'icon', ico ...@@ -106,7 +106,7 @@ const AddressAddToWallet = ({ className, token, isLoading, variant = 'icon', ico
return ( return (
<Tooltip label={ `Add token to ${ WALLETS_INFO[wallet].name }` }> <Tooltip label={ `Add token to ${ WALLETS_INFO[wallet].name }` }>
<Box className={ className } display="inline-flex" cursor="pointer" onClick={ handleClick } flexShrink={ 0 }> <Box className={ className } display="inline-flex" cursor="pointer" onClick={ handleClick } flexShrink={ 0 } aria-label="Add token to wallet">
<Icon as={ WALLETS_INFO[wallet].icon } boxSize={ iconSize }/> <Icon as={ WALLETS_INFO[wallet].icon } boxSize={ iconSize }/>
</Box> </Box>
</Tooltip> </Tooltip>
......
...@@ -51,7 +51,13 @@ const TokensTableItem = ({ ...@@ -51,7 +51,13 @@ const TokensTableItem = ({
}; };
return ( return (
<Tr> <Tr
sx={{
'&:hover [aria-label="Add token to wallet"]': {
opacity: 1,
},
}}
>
<Td> <Td>
<Flex alignItems="flex-start"> <Flex alignItems="flex-start">
<Skeleton <Skeleton
...@@ -81,7 +87,12 @@ const TokensTableItem = ({ ...@@ -81,7 +87,12 @@ const TokensTableItem = ({
fontSize="sm" fontSize="sm"
fontWeight={ 500 } fontWeight={ 500 }
/> />
<AddressAddToWallet token={ token } isLoading={ isLoading } iconSize={ 5 }/> <AddressAddToWallet
token={ token }
isLoading={ isLoading }
iconSize={ 5 }
opacity={ 0 }
/>
</Flex> </Flex>
<Flex columnGap={ 1 }> <Flex columnGap={ 1 }>
<Tag isLoading={ isLoading }>{ type }</Tag> <Tag isLoading={ isLoading }>{ type }</Tag>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment