mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Update board.tsx
This commit is contained in:
@@ -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}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user