diff --git a/oxlint-suppressions.json b/oxlint-suppressions.json index f533d7cb0d..4b2bbcadd8 100644 --- a/oxlint-suppressions.json +++ b/oxlint-suppressions.json @@ -244,14 +244,6 @@ "count": 3 } }, - "src/components/Post/Embed/ImageEmbed.tsx": { - "typescript/no-explicit-any": { - "count": 2 - }, - "typescript/no-floating-promises": { - "count": 1 - } - }, "src/components/Post/Embed/VideoEmbed/VideoEmbedInner/VideoEmbedInnerWeb.tsx": { "typescript/no-floating-promises": { "count": 2 diff --git a/src/components/Post/Embed/ImageEmbed.tsx b/src/components/Post/Embed/ImageEmbed.tsx index 9eea748a33..235a82ebaf 100644 --- a/src/components/Post/Embed/ImageEmbed.tsx +++ b/src/components/Post/Embed/ImageEmbed.tsx @@ -59,7 +59,7 @@ export function ImageEmbed({ // Captured from AutoSizedImage so the peek-commit handler can reuse the same // ref + dims that a tap would — keeps the lightbox's return animation intact. - const singleContainerRef = useRef | null>(null) + const singleContainerRef = useRef | null>(null) const singleDimsRef = useRef(null) if (images.length > 0) { @@ -71,7 +71,7 @@ export function ImageEmbed({ })) const onPress = ( index: number, - refs: AnimatedRef[], + refs: AnimatedRef[], fetchedDims: (Dimensions | null)[], ) => { if (postContext) { @@ -97,7 +97,7 @@ export function ImageEmbed({ } const onPressIn = (_: number) => { InteractionManager.runAfterInteractions(() => { - Image.prefetch( + void Image.prefetch( items.map(i => i.uri), 'memory', ) @@ -115,7 +115,7 @@ export function ImageEmbed({ onPress(0, [singleContainerRef.current], [singleDimsRef.current]) } } - console.log(rest.viewContext, 'rest.viewContext') + return (