Merge branch 'custom-algos' of https://github.com/bluesky-social/social-app into custom-algos

This commit is contained in:
Ansh Nanda 2023-05-25 00:18:00 -07:00
commit 524f8b6abd
5 changed files with 103 additions and 23 deletions

View file

@ -240,6 +240,7 @@ const FeedPage = observer(
feed.refresh()
}, [feed, scrollToTop])
const hasNew = feed.hasNewLatest && !feed.isRefreshing
return (
<View testID={testID} style={s.h100pct}>
<Feed
@ -254,8 +255,13 @@ const FeedPage = observer(
renderEmptyState={renderEmptyState}
headerOffset={HEADER_OFFSET}
/>
{isScrolledDown && (
<LoadLatestBtn onPress={onPressLoadLatest} label="Load new posts" />
{(isScrolledDown || hasNew) && (
<LoadLatestBtn
onPress={onPressLoadLatest}
label="Load new posts"
showIndicator={hasNew}
minimalShellMode={store.shell.minimalShellMode}
/>
)}
<FAB
testID="composeFAB"