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,30 +55,45 @@ export function GalleryFallbackEmbed({count}: {count?: number}) {
other: 'This post has # photos.', other: 'This post has # photos.',
})} })}
</Text> </Text>
<Text style={bodyStyle}> {IS_NATIVE ? (
{plural(count, { <Text style={bodyStyle}>
one: 'Update your app to see it.', {plural(count, {
other: 'Update your app to see them all.', one: 'Update your app to see it.',
})} other: 'Update your app to see them all.',
</Text> })}
</Text>
) : (
<Text style={bodyStyle}>
{plural(count, {
one: 'Refresh the page to see it.',
other: 'Refresh the page to see them all.',
})}
</Text>
)}
</View> </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
label={l`Update your app`}
size="small"
color="primary"
onPress={() => {
void Linking.openURL(BSKY_DOWNLOAD_URL)
}}
style={[a.mt_xs]}>
<ButtonText>
<Trans>Update app</Trans>
</ButtonText>
</Button>
)} )}
<Button
label={l`Update your app`}
size="small"
color="primary"
onPress={() => {
void Linking.openURL(BSKY_DOWNLOAD_URL)
}}
style={[a.mt_xs]}>
<ButtonText>
<Trans>Update app</Trans>
</ButtonText>
</Button>
</View> </View>
) )
} }