Fix build R1

This commit is contained in:
Weitheng Haw 2025-02-04 11:32:47 +00:00
parent f4a2021b9c
commit b96afed8c5
2 changed files with 3 additions and 8 deletions

View File

@ -103,7 +103,7 @@ export default function LPRDetailDialog({
<Title>License Plate Image</Title>
<Description className="sr-only">License plate image details</Description>
</Header>
<PlateTab lprImage={lprImage} config={config} />
<PlateTab lprImage={lprImage} />
</Content>
</Overlay>
);
@ -169,12 +169,11 @@ export default function LPRDetailDialog({
{page === "raw" && (
<PlateTab
lprImage={rawImage}
config={config}
/>
)}
</>
) : (
<PlateTab lprImage={lprImage} config={config} />
<PlateTab lprImage={lprImage} />
)}
</Content>
</Overlay>
@ -344,10 +343,9 @@ function VideoTab({ event }: VideoTabProps) {
type PlateTabProps = {
lprImage: string;
config: FrigateConfig;
};
function PlateTab({ lprImage, config }: PlateTabProps) {
function PlateTab({ lprImage }: PlateTabProps) {
const [imgRef, imgLoaded, onImgLoad] = useImageLoaded();
return (

View File

@ -21,11 +21,8 @@ import { useFormattedTimestamp } from "@/hooks/use-date-utils";
import { LuArrowDownUp, LuTrash2 } from "react-icons/lu";
import axios from "axios";
import { toast } from "sonner";
import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";
import { cn } from "@/lib/utils";
type SortOption = "score_desc" | "score_asc" | "time_desc" | "time_asc";
type ViewMode = "detected" | "raw";
export default function LPRDebug() {
const { data: config } = useSWR<FrigateConfig>("config");