Skip to content

Commit 8087beb

Browse files
committed
chore: lint
1 parent 5e0f2a0 commit 8087beb

File tree

1 file changed

+12
-11
lines changed
  • apps/desktop/layer/renderer/src/components/ui/media

1 file changed

+12
-11
lines changed

apps/desktop/layer/renderer/src/components/ui/media/Media.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const MediaImpl: FC<MediaProps> = ({
143143
})
144144
}
145145
return previewImageUrl
146-
}, [previewImageUrl, proxy, currentSource?.type])
146+
}, [previewImageUrl, proxy, currentSource?.type, getImageProxyUrl])
147147

148148
// When image source list changes, reset to the first source
149149
const prevImageSources = useRef(imageSources)
@@ -306,21 +306,22 @@ const MediaImpl: FC<MediaProps> = ({
306306
}
307307
}
308308
}, [
309-
errorHandle,
310-
handleClick,
311-
handleOnLoad,
312-
imgSrc,
313-
mediaContainerClassName,
309+
type,
310+
rest,
314311
finalHeight,
315312
finalWidth,
316-
mediaLoadState,
313+
errorHandle,
314+
inline,
317315
popper,
318-
previewImageSrc,
319-
rest,
316+
mediaLoadState,
317+
mediaContainerClassName,
318+
imgSrc,
319+
handleOnLoad,
320+
handleClick,
320321
src,
322+
previewImageSrc,
321323
thumbnail,
322-
type,
323-
inline,
324+
videoClassName,
324325
])
325326

326327
if (!type || !src) return null

0 commit comments

Comments
 (0)