Fix lint on main (#1885)

zio/stable
dan 2023-11-13 21:01:26 +00:00 committed by GitHub
parent e1938931e0
commit bb4ed3cd49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

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