From 391ade526965a8a7a82d84b92216c21b75399121 Mon Sep 17 00:00:00 2001 From: Michal Zielenkiewicz Date: Fri, 1 Dec 2023 11:08:36 +0100 Subject: [PATCH] Prevent changing scroll position during navigation between collections --- .../pages/AccountDetailsPage/AccountNFTCollectionCard.tsx | 5 +++-- src/app/pages/AccountDetailsPage/AccountTokensCard.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/pages/AccountDetailsPage/AccountNFTCollectionCard.tsx b/src/app/pages/AccountDetailsPage/AccountNFTCollectionCard.tsx index b8c1ba6d77..47ae5910f7 100644 --- a/src/app/pages/AccountDetailsPage/AccountNFTCollectionCard.tsx +++ b/src/app/pages/AccountDetailsPage/AccountNFTCollectionCard.tsx @@ -28,7 +28,7 @@ import { EvmNft } from 'oasis-nexus/api' import { SearchScope } from '../../../types/searchScope' import { NFTCollectionLink, NFTInstanceLink } from '../TokenDashboardPage/NFTLinks' -export const accountTokenContainerId = 'nftCollection' +export const accountNFTCollectionContainerId = 'nftCollection' export const AccountNFTCollectionCard: FC = ({ scope, address }) => { const { t } = useTranslation() @@ -55,8 +55,9 @@ export const AccountNFTCollectionCard: FC = ({ scope, add {t('nft.accountCollection')} diff --git a/src/app/pages/AccountDetailsPage/AccountTokensCard.tsx b/src/app/pages/AccountDetailsPage/AccountTokensCard.tsx index e9db595390..6c336b8140 100644 --- a/src/app/pages/AccountDetailsPage/AccountTokensCard.tsx +++ b/src/app/pages/AccountDetailsPage/AccountTokensCard.tsx @@ -100,7 +100,7 @@ export const AccountTokensCard: FC = ({ scope, address, align: TableCellAlign.Right, key: 'link', content: ( - + {t('common.viewAll')} ),