about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/view/screens/Profile.tsx12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx
index dab8988ad..23fb088bb 100644
--- a/src/view/screens/Profile.tsx
+++ b/src/view/screens/Profile.tsx
@@ -269,15 +269,21 @@ interface FeedSectionProps {
 }
 const FeedSection = React.forwardRef<SectionRef, FeedSectionProps>(
   function FeedSectionImpl(
-    {feed, onScroll, headerHeight, isScrolledDown, scrollElRef},
+    {
+      feed,
+      onScroll,
+      headerHeight,
+      // isScrolledDown,
+      scrollElRef,
+    },
     ref,
   ) {
-    const hasNew = false //TODO feed.hasNewLatest && !feed.isRefreshing
+    // const hasNew = false //TODO feed.hasNewLatest && !feed.isRefreshing
 
     const onScrollToTop = React.useCallback(() => {
       scrollElRef.current?.scrollToOffset({offset: -headerHeight})
       // feed.refresh() TODO
-    }, [feed, scrollElRef, headerHeight])
+    }, [scrollElRef, headerHeight])
     React.useImperativeHandle(ref, () => ({
       scrollToTop: onScrollToTop,
     }))