From a7d617c7a616b6f6a8e0db41f02e052d6bd077e8 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 15 Jan 2024 15:03:54 -0800 Subject: Add a new home feed-api wrapper and give a header indicating the fallback behavior (#2534) * Add a new home feed-api wrapper and give a header indicating the fallback behavior * Sneak in a quick fix: use the correct text color in the delete modal * Use imported constant --- src/view/com/posts/DiscoverFallbackHeader.tsx | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/view/com/posts/DiscoverFallbackHeader.tsx (limited to 'src/view/com/posts/DiscoverFallbackHeader.tsx') diff --git a/src/view/com/posts/DiscoverFallbackHeader.tsx b/src/view/com/posts/DiscoverFallbackHeader.tsx new file mode 100644 index 000000000..dcfa3b012 --- /dev/null +++ b/src/view/com/posts/DiscoverFallbackHeader.tsx @@ -0,0 +1,43 @@ +import React from 'react' +import {View} from 'react-native' +import {Trans} from '@lingui/macro' +import {Text} from '../util/text/Text' +import {usePalette} from '#/lib/hooks/usePalette' +import {TextLink} from '../util/Link' +import {InfoCircleIcon} from '#/lib/icons' + +export function DiscoverFallbackHeader() { + const pal = usePalette('default') + return ( + + + + + + + + We ran out of posts from your follows. Here's the latest from + {' '} + + . + + + + ) +} -- cgit 1.4.1