about summary refs log tree commit diff
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2023-11-13 21:01:26 +0000
committerGitHub <noreply@github.com>2023-11-13 13:01:26 -0800
commitbb4ed3cd49761a0671125451e2e6f0f9993d0e17 (patch)
tree03b4402c37b391041f39eac8273a48eeeeae3219
parente1938931e028f4486cce8cd9da39ffd940c10ec2 (diff)
downloadvoidsky-bb4ed3cd49761a0671125451e2e6f0f9993d0e17.tar.zst
Fix lint on main (#1885)
-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,
     }))