Skip to content

Commit

Permalink
Merge pull request #1210 from oasisprotocol/mz/fixTokensCardLink
Browse files Browse the repository at this point in the history
Show view all link only for ERC721 tokens
  • Loading branch information
buberdds authored Jan 31, 2024
2 parents ff0d901 + 280f079 commit bc844b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
1 change: 1 addition & 0 deletions .changelog/1210.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Show view all link only for ERC721 tokens
22 changes: 13 additions & 9 deletions src/app/pages/AccountDetailsPage/AccountTokensCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,19 @@ export const AccountTokensCard: FC<AccountTokensCardProps> = ({ scope, account,
content: item.token_symbol || t('common.missing'),
key: 'ticker',
},
{
align: TableCellAlign.Right,
key: 'link',
content: (
<Link component={RouterLink} to={item.token_contract_addr_eth} preventScrollReset={true}>
{t('common.viewAll')}
</Link>
),
},
...(isERC721
? [
{
align: TableCellAlign.Right,
key: 'link',
content: (
<Link component={RouterLink} to={item.token_contract_addr_eth} preventScrollReset={true}>
{t('common.viewAll')}
</Link>
),
},
]
: []),
],
highlight: item.token_contract_addr_eth === locationHash || item.token_contract_addr === locationHash,
}))
Expand Down

0 comments on commit bc844b7

Please sign in to comment.