chore: lint

This commit is contained in:
Stephen Zhou 2025-11-21 16:48:18 +08:00
parent 5e0f2a09b5
commit 8087bebfee
No known key found for this signature in database
1 changed files with 14 additions and 13 deletions

View File

@ -143,7 +143,7 @@ const MediaImpl: FC<MediaProps> = ({
})
}
return previewImageUrl
}, [previewImageUrl, proxy, currentSource?.type])
}, [previewImageUrl, proxy, currentSource?.type, getImageProxyUrl])
// When image source list changes, reset to the first source
const prevImageSources = useRef(imageSources)
@ -306,21 +306,22 @@ const MediaImpl: FC<MediaProps> = ({
}
}
}, [
errorHandle,
handleClick,
handleOnLoad,
imgSrc,
mediaContainerClassName,
type,
rest,
finalHeight,
finalWidth,
mediaLoadState,
popper,
previewImageSrc,
rest,
src,
thumbnail,
type,
errorHandle,
inline,
popper,
mediaLoadState,
mediaContainerClassName,
imgSrc,
handleOnLoad,
handleClick,
src,
previewImageSrc,
thumbnail,
videoClassName,
])
if (!type || !src) return null