Delete gallery fallback (#10922)

This commit is contained in:
Samuel Newman
2026-06-16 21:44:27 +03:00
committed by GitHub
parent 2257e834dc
commit 4c34149106
4 changed files with 3 additions and 134 deletions
@@ -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 (
<View style={[a.gap_md]}>
<H1>Gallery fallback (APP-2308)</H1>
<H3>No count</H3>
<GalleryFallbackEmbed />
<H3>1 photo</H3>
<GalleryFallbackEmbed count={1} />
<H3>5 photos</H3>
<GalleryFallbackEmbed count={5} />
<H3>10 photos</H3>
<GalleryFallbackEmbed count={10} />
</View>
)
}
+3 -5
View File
@@ -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() {
<Button
color="primary_subtle"
size="large"
onPress={() =>
requestDeviceGeolocation().then(req => {
onPress={() => {
void requestDeviceGeolocation().then(req => {
if (req.granted && req.location) {
setDeviceGeolocation(req.location)
}
})
}
}}
label="crash">
<ButtonText>Get GPS Location</ButtonText>
</Button>
@@ -133,7 +132,6 @@ export default function Storybook() {
<Breakpoints />
<Dialogs />
<Admonitions />
<GalleryFallback />
<Settings />
<Button