Update board.tsx

This commit is contained in:
plebeius
2026-02-21 19:47:58 +08:00
parent 1067ff39e8
commit 035ffd6414
+4 -3
View File
@@ -43,7 +43,7 @@ interface BoardFooterProps {
subplebbitState: string | undefined; subplebbitState: string | undefined;
subscriptionsLength: number; subscriptionsLength: number;
accountSubplebbitAddressesLength: number; accountSubplebbitAddressesLength: number;
/** In pagination mode, suppress infinite-scroll loading cues */ /** Show loading ellipsis. True when infinite scroll, or when pagination + empty feed (initial load). */
showLoadingEllipsis?: boolean; showLoadingEllipsis?: boolean;
} }
@@ -383,7 +383,7 @@ const Board = ({ feedCacheKey, viewType, boardIdentifier: boardIdentifierProp, t
subplebbitState={subplebbitState} subplebbitState={subplebbitState}
subscriptionsLength={subscriptions?.length || 0} subscriptionsLength={subscriptions?.length || 0}
accountSubplebbitAddressesLength={accountSubplebbitAddresses?.length || 0} accountSubplebbitAddressesLength={accountSubplebbitAddresses?.length || 0}
showLoadingEllipsis={enableInfiniteScroll} showLoadingEllipsis={enableInfiniteScroll || combinedFeed.length === 0}
/> />
), ),
}), }),
@@ -407,6 +407,7 @@ const Board = ({ feedCacheKey, viewType, boardIdentifier: boardIdentifierProp, t
subscriptions?.length, subscriptions?.length,
accountSubplebbitAddresses?.length, accountSubplebbitAddresses?.length,
enableInfiniteScroll, enableInfiniteScroll,
combinedFeed.length,
], ],
); );
@@ -541,7 +542,7 @@ const Board = ({ feedCacheKey, viewType, boardIdentifier: boardIdentifierProp, t
subplebbitState={subplebbitState} subplebbitState={subplebbitState}
subscriptionsLength={subscriptions?.length || 0} subscriptionsLength={subscriptions?.length || 0}
accountSubplebbitAddressesLength={accountSubplebbitAddresses?.length || 0} accountSubplebbitAddressesLength={accountSubplebbitAddresses?.length || 0}
showLoadingEllipsis={false} showLoadingEllipsis={combinedFeed.length === 0}
/> />
</> </>
)} )}