diff --git a/eslint-suppressions.json b/eslint-suppressions.json index a3cbe60000..b9e3809b0b 100644 --- a/eslint-suppressions.json +++ b/eslint-suppressions.json @@ -2471,11 +2471,6 @@ "count": 2 } }, - "src/view/screens/Storybook/Storybook.tsx": { - "@typescript-eslint/no-misused-promises": { - "count": 1 - } - }, "src/view/shell/Drawer.tsx": { "@typescript-eslint/no-floating-promises": { "count": 2 diff --git a/src/components/Post/Embed/GalleryFallbackEmbed.tsx b/src/components/Post/Embed/GalleryFallbackEmbed.tsx deleted file mode 100644 index 38d7e4d013..0000000000 --- a/src/components/Post/Embed/GalleryFallbackEmbed.tsx +++ /dev/null @@ -1,99 +0,0 @@ -import {Linking, View} from 'react-native' -import {plural} from '@lingui/core/macro' -import {Trans, useLingui} from '@lingui/react/macro' - -import {BSKY_DOWNLOAD_URL} from '#/lib/constants' -import {atoms as a, useTheme} from '#/alf' -import {Button, ButtonText} from '#/components/Button' -import {Sparkle_Stroke2_Corner0_Rounded as Sparkle} from '#/components/icons/Sparkle' -import {Text} from '#/components/Typography' -import {IS_NATIVE} from '#/env' - -/** - * OTA-able fallback that ships to native builds which don't yet know how to - * render the new gallery embed (>4 images, Photos v2). Final copy and visual - * treatment pending design from Darrin/Danielle/Alex. - * - * Native-only per APP-2308 - web builds receive the new gallery support in - * the same release that adds it. - */ -export function GalleryFallbackEmbed({count}: {count?: number}) { - const t = useTheme() - const {t: l} = useLingui() - - const bodyStyle = [ - a.text_sm, - a.text_center, - a.leading_snug, - t.atoms.text_contrast_high, - ] - - return ( - - - - Something new is here - - {count ? ( - - - {plural(count, { - one: 'This post has # photo.', - other: 'This post has # photos.', - })} - - {IS_NATIVE ? ( - - {plural(count, { - one: 'Update your app to see it.', - other: 'Update your app to see them all.', - })} - - ) : ( - - {plural(count, { - one: 'Refresh the page to see it.', - other: 'Refresh the page to see them all.', - })} - - )} - - ) : IS_NATIVE ? ( - - Update your app to see it. - - ) : ( - - Refresh the page to see it. - - )} - {IS_NATIVE && ( - - )} - - ) -} diff --git a/src/view/screens/Storybook/GalleryFallback.tsx b/src/view/screens/Storybook/GalleryFallback.tsx deleted file mode 100644 index 7cca087dba..0000000000 --- a/src/view/screens/Storybook/GalleryFallback.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import {View} from 'react-native' - -import {atoms as a} from '#/alf' -import {GalleryFallbackEmbed} from '#/components/Post/Embed/GalleryFallbackEmbed' -import {H1, H3} from '#/components/Typography' - -export function GalleryFallback() { - return ( - -

Gallery fallback (APP-2308)

- -

No count

- - -

1 photo

- - -

5 photos

- - -

10 photos

- -
- ) -} diff --git a/src/view/screens/Storybook/Storybook.tsx b/src/view/screens/Storybook/Storybook.tsx index 84e8cb4397..cc11332126 100644 --- a/src/view/screens/Storybook/Storybook.tsx +++ b/src/view/screens/Storybook/Storybook.tsx @@ -18,7 +18,6 @@ import {Breakpoints} from './Breakpoints' import {Buttons} from './Buttons' import {Dialogs} from './Dialogs' import {Forms} from './Forms' -import {GalleryFallback} from './GalleryFallback' import {Icons} from './Icons' import {Links} from './Links' import {Menus} from './Menus' @@ -90,13 +89,13 @@ export default function Storybook() { @@ -133,7 +132,6 @@ export default function Storybook() { -