Remove console.log, address lint (#11228)

This commit is contained in:
DS Boyce
2026-07-21 13:25:01 -07:00
committed by GitHub
parent 86f0bedfbe
commit cbf0d89128
2 changed files with 4 additions and 12 deletions
-8
View File
@@ -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
+4 -4
View File
@@ -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<AnimatedRef<any> | null>(null)
const singleContainerRef = useRef<AnimatedRef<React.Component> | null>(null)
const singleDimsRef = useRef<Dimensions | null>(null)
if (images.length > 0) {
@@ -71,7 +71,7 @@ export function ImageEmbed({
}))
const onPress = (
index: number,
refs: AnimatedRef<any>[],
refs: AnimatedRef<React.Component>[],
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 (
<View style={[a.mt_sm, rest.style]}>
<ImageContextMenu