Skip to content

Commit

Permalink
Address ERC-20 tokens tab navigation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
isstuev committed Jan 11, 2025
1 parent e066388 commit dff9a01
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ui/address/details/AddressCounterItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ const AddressCounterItem = ({ prop, query, address, onClick, isAddressQueryLoadi
}

return (
<LinkInternal href={ route({ pathname: '/address/[hash]', query: { hash: address, tab: PROP_TO_TAB[prop] } }) } onClick={ onClick }>
<LinkInternal
href={ route({ pathname: '/address/[hash]', query: { hash: address, tab: PROP_TO_TAB[prop] } }) }
onClick={ onClick }
scroll={ false }
>
{ Number(data).toLocaleString() }
</LinkInternal>
);
Expand Down
7 changes: 6 additions & 1 deletion ui/address/tokenSelect/TokenSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ const TokenSelect = ({ onClick }: Props) => {
}
<Tooltip label="Show all tokens">
<Box>
<NextLink href={{ pathname: '/address/[hash]', query: { hash: addressHash, tab: 'tokens' } }} passHref legacyBehavior>
<NextLink
href={{ pathname: '/address/[hash]', query: { hash: addressHash, tab: 'tokens' } }}
passHref
legacyBehavior
scroll={ false }
>
<IconButton
aria-label="Show all tokens"
variant="outline"
Expand Down

0 comments on commit dff9a01

Please sign in to comment.