Skip to content

Commit

Permalink
fix(ui-ux): display tokens tab
Browse files Browse the repository at this point in the history
  • Loading branch information
pierregee committed May 2, 2024
1 parent 40cd27a commit fc75108
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/web/src/pages/address/_components/ListTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const getTabsByAddressType = (addressType: AddressType) => {
{ title: AddressContractTabsTitle.Transactions },
{ title: AddressContractTabsTitle.Logs },
{ title: AddressContractTabsTitle.Contract },
{ title: AddressContractTabsTitle.Tokens },
];
case AddressType.Contract:
return [
Expand All @@ -31,7 +32,10 @@ const getTabsByAddressType = (addressType: AddressType) => {
];
case AddressType.Wallet:
default:
return [{ title: AddressContractTabsTitle.Transactions }];
return [
{ title: AddressContractTabsTitle.Transactions },
{ title: AddressContractTabsTitle.Tokens },
];
}
};

Expand Down Expand Up @@ -84,7 +88,7 @@ function ButtonTab({
type="button"
className={clsx(
"font-medium",
active ? "text-white-50" : "text-white-700",
active ? "text-white-50" : "text-white-700"
)}
data-testid={testId}
onClick={() => setSelectedTab(tab)}
Expand Down

0 comments on commit fc75108

Please sign in to comment.