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, }))