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(
|
const footerComponent = useMemo(
|
||||||
() => (
|
() => (
|
||||||
<ListFooter
|
<>
|
||||||
isFetchingNextPage={isFetchingNextPage}
|
{drafts.length > 5 && (
|
||||||
hasNextPage={hasNextPage}
|
<View style={[a.align_center, a.py_2xl]}>
|
||||||
style={[a.border_transparent]}
|
<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 (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user