Tweak to work on web too just in case

This commit is contained in:
Eric Bailey
2026-06-04 17:58:14 -05:00
parent 7a9eabbf75
commit bd153bcaff
@@ -21,8 +21,6 @@ export function GalleryFallbackEmbed({count}: {count?: number}) {
const t = useTheme() const t = useTheme()
const {t: l} = useLingui() const {t: l} = useLingui()
if (!IS_NATIVE) return null
const bodyStyle = [ const bodyStyle = [
a.text_sm, a.text_sm,
a.text_center, a.text_center,
@@ -57,18 +55,32 @@ export function GalleryFallbackEmbed({count}: {count?: number}) {
other: 'This post has # photos.', other: 'This post has # photos.',
})} })}
</Text> </Text>
{IS_NATIVE ? (
<Text style={bodyStyle}> <Text style={bodyStyle}>
{plural(count, { {plural(count, {
one: 'Update your app to see it.', one: 'Update your app to see it.',
other: 'Update your app to see them all.', other: 'Update your app to see them all.',
})} })}
</Text> </Text>
</View>
) : ( ) : (
<Text style={bodyStyle}>
{plural(count, {
one: 'Refresh the page to see it.',
other: 'Refresh the page to see them all.',
})}
</Text>
)}
</View>
) : IS_NATIVE ? (
<Text style={bodyStyle}> <Text style={bodyStyle}>
<Trans>Update your app to see it.</Trans> <Trans>Update your app to see it.</Trans>
</Text> </Text>
) : (
<Text style={bodyStyle}>
<Trans>Refresh the page to see it.</Trans>
</Text>
)} )}
{IS_NATIVE && (
<Button <Button
label={l`Update your app`} label={l`Update your app`}
size="small" size="small"
@@ -81,6 +93,7 @@ export function GalleryFallbackEmbed({count}: {count?: number}) {
<Trans>Update app</Trans> <Trans>Update app</Trans>
</ButtonText> </ButtonText>
</Button> </Button>
)}
</View> </View>
) )
} }