Add encouragement message to drafts list
Shows "So many thoughts, you should post one" at the bottom of the drafts list when user has more than 5 drafts. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -140,13 +140,22 @@ export function DraftsListDialog({
|
||||
|
||||
const footerComponent = useMemo(
|
||||
() => (
|
||||
<ListFooter
|
||||
isFetchingNextPage={isFetchingNextPage}
|
||||
hasNextPage={hasNextPage}
|
||||
style={[a.border_transparent]}
|
||||
/>
|
||||
<>
|
||||
{drafts.length > 5 && (
|
||||
<View style={[a.align_center, a.py_2xl]}>
|
||||
<ButtonText style={[t.atoms.text_contrast_medium]}>
|
||||
<Trans>So many thoughts, you should post one</Trans>
|
||||
</ButtonText>
|
||||
</View>
|
||||
)}
|
||||
<ListFooter
|
||||
isFetchingNextPage={isFetchingNextPage}
|
||||
hasNextPage={hasNextPage}
|
||||
style={[a.border_transparent]}
|
||||
/>
|
||||
</>
|
||||
),
|
||||
[isFetchingNextPage, hasNextPage],
|
||||
[isFetchingNextPage, hasNextPage, drafts.length, t],
|
||||
)
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user