Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
371f60e2
Commit
371f60e2
authored
Dec 21, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide metamask icon in tables
Fixes #1415
parent
ea9e0cd5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
5 deletions
+22
-5
ERC20TokensTableItem.tsx
ui/address/tokens/ERC20TokensTableItem.tsx
+8
-2
AddressAddToWallet.tsx
ui/shared/address/AddressAddToWallet.tsx
+1
-1
TokensTableItem.tsx
ui/tokens/TokensTableItem.tsx
+13
-2
No files found.
ui/address/tokens/ERC20TokensTableItem.tsx
View file @
371f60e2
...
@@ -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"
>
...
...
ui/shared/address/AddressAddToWallet.tsx
View file @
371f60e2
...
@@ -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
>
...
...
ui/tokens/TokensTableItem.tsx
View file @
371f60e2
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment