Skip to content

Commit

Permalink
Fix lint on main (#1885)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Nov 13, 2023
1 parent e193893 commit bb4ed3c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/view/screens/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}))
Expand Down

0 comments on commit bb4ed3c

Please sign in to comment.