about summary refs log tree commit diff
path: root/src/view/com/feeds/ProfileFeedgens.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-05-06 23:07:48 +0300
committerGitHub <noreply@github.com>2025-05-06 23:07:48 +0300
commitd1ec73a28968a5fa290c37f49512c20117da12d8 (patch)
tree40ec88c6e9d6c49c55d4739b28593dccfe3bacb3 /src/view/com/feeds/ProfileFeedgens.tsx
parent433fa33b27c46d978388e0034d832c133a37d0b9 (diff)
downloadvoidsky-d1ec73a28968a5fa290c37f49512c20117da12d8.tar.zst
hide footer when lists list is empty (#8337)
Diffstat (limited to 'src/view/com/feeds/ProfileFeedgens.tsx')
-rw-r--r--src/view/com/feeds/ProfileFeedgens.tsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/view/com/feeds/ProfileFeedgens.tsx b/src/view/com/feeds/ProfileFeedgens.tsx
index 76b57d0ee..5ba17e426 100644
--- a/src/view/com/feeds/ProfileFeedgens.tsx
+++ b/src/view/com/feeds/ProfileFeedgens.tsx
@@ -182,6 +182,7 @@ export const ProfileFeedgens = React.forwardRef<
   }, [enabled, scrollElRef, setScrollViewTag])
 
   const ProfileFeedgensFooter = React.useCallback(() => {
+    if (isEmpty) return null
     return (
       <ListFooter
         hasNextPage={hasNextPage}
@@ -191,7 +192,14 @@ export const ProfileFeedgens = React.forwardRef<
         height={180 + headerOffset}
       />
     )
-  }, [hasNextPage, error, isFetchingNextPage, headerOffset, fetchNextPage])
+  }, [
+    hasNextPage,
+    error,
+    isFetchingNextPage,
+    headerOffset,
+    fetchNextPage,
+    isEmpty,
+  ])
 
   return (
     <View testID={testID} style={style}>