Fix linter and fix lint issues (#10141)

This commit is contained in:
Nicolas Mowen
2024-02-28 15:23:56 -07:00
committed by GitHub
parent b6ef1e4330
commit 3bf2a496e1
63 changed files with 527 additions and 418 deletions

View File

@@ -30,7 +30,7 @@ export function AnimatedEventThumbnail({ event }: AnimatedEventThumbnailProps) {
}
return `${baseUrl}api/review/${event.id}/preview.gif`;
}, [event]);
}, [apiHost, event]);
const aspectRatio = useMemo(() => {
if (!config) {
@@ -39,7 +39,7 @@ export function AnimatedEventThumbnail({ event }: AnimatedEventThumbnailProps) {
const detect = config.cameras[event.camera].detect;
return detect.width / detect.height;
}, [config]);
}, [config, event]);
return (
<Tooltip>