From bb4ed3cd49761a0671125451e2e6f0f9993d0e17 Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 13 Nov 2023 21:01:26 +0000 Subject: [PATCH] Fix lint on main (#1885) --- src/view/screens/Profile.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx index dab8988ad5..23fb088bb4 100644 --- a/src/view/screens/Profile.tsx +++ b/src/view/screens/Profile.tsx @@ -269,15 +269,21 @@ interface FeedSectionProps { } const FeedSection = React.forwardRef( 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, }))