diff options
author | dan <dan.abramov@gmail.com> | 2023-11-13 21:01:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 13:01:26 -0800 |
commit | bb4ed3cd49761a0671125451e2e6f0f9993d0e17 (patch) | |
tree | 03b4402c37b391041f39eac8273a48eeeeae3219 | |
parent | e1938931e028f4486cce8cd9da39ffd940c10ec2 (diff) | |
download | voidsky-bb4ed3cd49761a0671125451e2e6f0f9993d0e17.tar.zst |
Fix lint on main (#1885)
-rw-r--r-- | src/view/screens/Profile.tsx | 12 |
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, })) |