Fix lint on main (#1885)

This commit is contained in:
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

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