UX: Remove filter if tab is empty (#3347)

Resolves #3339
This commit is contained in:
tom goriunov
2026-04-07 19:26:06 +02:00
committed by GitHub
parent 60798ab66e
commit 3763f5cf7f
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -114,6 +114,10 @@ const AddressTokenTransfers = ({ shouldRender = true, overloadCount, isQueryEnab
const numActiveFilters = (localQuery.filters.type?.length || 0) + (localQuery.filters.filter ? 1 : 0);
if (!localQuery.query.data?.items.length && !numActiveFilters) {
return null;
}
return (
<>
<HStack gap={ 3 }>
+4
View File
@@ -115,6 +115,10 @@ const AddressTxs = ({ shouldRender = true, isQueryEnabled = true }: Props) => {
return null;
}
if (!localQuery.query.data?.items.length && !localQuery.filterValue) {
return null;
}
return (
<>
<HStack gap={ 3 }>