Skip to content

Commit 09fa299

Browse files
committed
FIX: suppress ESLint warnings for dynamic blob URLs and throttled callback
1 parent 9508567 commit 09fa299

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/components/media-gallery.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ export function MediaGallerySheet({
228228
{!!mediaUrl && (
229229
<>
230230
{selectedMedia.mediaType === "image" && (
231+
// eslint-disable-next-line @next/next/no-img-element
231232
<img
232233
src={mediaUrl}
233234
alt={"Media preview"}

src/components/media-panel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ export function MediaItemRow({
267267
<>
268268
{(data.mediaType === "image" || data.mediaType === "video") &&
269269
(coverImage ? (
270+
// eslint-disable-next-line @next/next/no-img-element
270271
<img
271272
src={coverImage}
272273
alt="Generated media"

src/components/right-panel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ const SelectedAssetPreview = ({
842842
</video>
843843
)}
844844
{assetType === "image" && (
845+
// eslint-disable-next-line @next/next/no-img-element
845846
<img
846847
id="image-preview"
847848
src={

src/components/video-frame-selector.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ export default function VideoFrameSelector({
296296
<div className="w-3 h-3 rotate-45 absolute bg-neutral-300 left-1/2 -translate-x-1/2 -top-1" />
297297
</div>
298298
<div className="relative aspect-square w-full p-1 h-full overflow-hidden group">
299+
{/* eslint-disable-next-line @next/next/no-img-element */}
299300
<img
300301
src={
301302
typeof image?.src !== "string"

src/components/video-preview.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ export default function VideoPreview() {
242242

243243
const setPlayerState = useVideoProjectStore((s) => s.setPlayerState);
244244
// Frame updates are super frequent, so we throttle the updates to the timestamp
245+
// eslint-disable-next-line react-hooks/exhaustive-deps
245246
const updatePlayerCurrentTimestamp = useCallback(
246247
throttle(64, setPlayerCurrentTimestamp),
247248
[],

0 commit comments

Comments
 (0)