From cbf0d891281e1d18cd0f0fc15bd2cfba87dc6449 Mon Sep 17 00:00:00 2001 From: DS Boyce <260543580+ds-boyce@users.noreply.github.com> Date: Tue, 21 Jul 2026 13:25:01 -0700 Subject: [PATCH] Remove console.log, address lint (#11228) --- oxlint-suppressions.json | 8 -------- src/components/Post/Embed/ImageEmbed.tsx | 8 ++++---- 2 files changed, 4 insertions(+), 12 deletions(-) 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 (