diff options
Diffstat (limited to 'src/view/screens/ProfileList.tsx')
-rw-r--r-- | src/view/screens/ProfileList.tsx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/view/screens/ProfileList.tsx b/src/view/screens/ProfileList.tsx index 1aa2a21b8..7580dcf55 100644 --- a/src/view/screens/ProfileList.tsx +++ b/src/view/screens/ProfileList.tsx @@ -558,13 +558,8 @@ const FeedSection = React.forwardRef<SectionRef, FeedSectionProps>( const onScrollToTop = useCallback(() => { scrollElRef.current?.scrollToOffset({offset: -headerHeight}) - }, [scrollElRef, headerHeight]) - - const onPressLoadLatest = React.useCallback(() => { - onScrollToTop() feed.refresh() - }, [feed, onScrollToTop]) - + }, [feed, scrollElRef, headerHeight]) React.useImperativeHandle(ref, () => ({ scrollToTop: onScrollToTop, })) @@ -586,7 +581,7 @@ const FeedSection = React.forwardRef<SectionRef, FeedSectionProps>( /> {(isScrolledDown || hasNew) && ( <LoadLatestBtn - onPress={onPressLoadLatest} + onPress={onScrollToTop} label="Load new posts" showIndicator={hasNew} /> |