From 6cc040a94eeef0e27469a3ba40393a22b7007959 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 20 May 2024 21:42:49 -0500 Subject: [🐴] Add end of list text, fix threshold (#4138) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add end of list text * onEndReachedThreshold --- src/components/Lists.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/components/Lists.tsx') diff --git a/src/components/Lists.tsx b/src/components/Lists.tsx index 8cbe2810e..47a5bf8f1 100644 --- a/src/components/Lists.tsx +++ b/src/components/Lists.tsx @@ -13,12 +13,14 @@ import {Text} from '#/components/Typography' export function ListFooter({ isFetchingNextPage, + hasNextPage, error, onRetry, height, style, }: { isFetchingNextPage?: boolean + hasNextPage?: boolean error?: string onRetry?: () => Promise height?: number @@ -40,7 +42,19 @@ export function ListFooter({ {isFetchingNextPage ? ( ) : ( - + <> + {error ? ( + + ) : ( + <> + {!hasNextPage && ( + + End of list + + )} + + )} + )} ) -- cgit 1.4.1