Skip to content

Commit

Permalink
Fix token tabs labels
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Jul 6, 2023
1 parent 81cbf88 commit 0083ce6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/pages/AccountDetailsPage/AccountTokensCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const AccountTokensCard: FC<AccountTokensCardProps> = ({ type }) => {
const { t } = useTranslation()
const locationHash = useLocation().hash.replace('#', '')
const tokenLabel = t(`account.${type}` as any)
const tokenListLabel = t('common.tokens') // TODO: re-enable when we want multiple token types again t('account.tokensListTitle', { token: tokenLabel })
const tokenListLabel = t('account.tokensListTitle', { token: tokenLabel })
const tableColumns: TableColProps[] = [
{ key: 'name', content: t('common.name') },
{ key: 'contract', content: t('common.smartContract') },
Expand Down
12 changes: 10 additions & 2 deletions src/app/pages/AccountDetailsPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,16 @@ export const AccountDetailsPage: FC = () => {
tabs={[
{ label: t('common.transactions'), to: txLink, visible: showTxs },
{ label: t('tokens.transfers'), to: tokenTransfersLink, visible: showTokenTransfers },
{ label: t('account.ERC20'), to: erc20Link, visible: showErc20 },
{ label: t('account.ERC721'), to: erc721Link, visible: showErc721 },
{
label: t('account.tokensListTitle', { token: t(`account.ERC20`) }),
to: erc20Link,
visible: showErc20,
},
{
label: t('account.tokensListTitle', { token: t(`account.ERC20`) }),
to: erc721Link,
visible: showErc721,
},
{ label: t('contract.code'), to: codeLink, visible: showCode },
]}
/>
Expand Down

0 comments on commit 0083ce6

Please sign in to comment.