Remove console.log, address lint (#11228)
This commit is contained in:
@@ -244,14 +244,6 @@
|
|||||||
"count": 3
|
"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": {
|
"src/components/Post/Embed/VideoEmbed/VideoEmbedInner/VideoEmbedInnerWeb.tsx": {
|
||||||
"typescript/no-floating-promises": {
|
"typescript/no-floating-promises": {
|
||||||
"count": 2
|
"count": 2
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export function ImageEmbed({
|
|||||||
|
|
||||||
// Captured from AutoSizedImage so the peek-commit handler can reuse the same
|
// 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.
|
// 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)
|
const singleDimsRef = useRef<Dimensions | null>(null)
|
||||||
|
|
||||||
if (images.length > 0) {
|
if (images.length > 0) {
|
||||||
@@ -71,7 +71,7 @@ export function ImageEmbed({
|
|||||||
}))
|
}))
|
||||||
const onPress = (
|
const onPress = (
|
||||||
index: number,
|
index: number,
|
||||||
refs: AnimatedRef<any>[],
|
refs: AnimatedRef<React.Component>[],
|
||||||
fetchedDims: (Dimensions | null)[],
|
fetchedDims: (Dimensions | null)[],
|
||||||
) => {
|
) => {
|
||||||
if (postContext) {
|
if (postContext) {
|
||||||
@@ -97,7 +97,7 @@ export function ImageEmbed({
|
|||||||
}
|
}
|
||||||
const onPressIn = (_: number) => {
|
const onPressIn = (_: number) => {
|
||||||
InteractionManager.runAfterInteractions(() => {
|
InteractionManager.runAfterInteractions(() => {
|
||||||
Image.prefetch(
|
void Image.prefetch(
|
||||||
items.map(i => i.uri),
|
items.map(i => i.uri),
|
||||||
'memory',
|
'memory',
|
||||||
)
|
)
|
||||||
@@ -115,7 +115,7 @@ export function ImageEmbed({
|
|||||||
onPress(0, [singleContainerRef.current], [singleDimsRef.current])
|
onPress(0, [singleContainerRef.current], [singleDimsRef.current])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(rest.viewContext, 'rest.viewContext')
|
|
||||||
return (
|
return (
|
||||||
<View style={[a.mt_sm, rest.style]}>
|
<View style={[a.mt_sm, rest.style]}>
|
||||||
<ImageContextMenu
|
<ImageContextMenu
|
||||||
|
|||||||
Reference in New Issue
Block a user