mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 17:14:26 +03:00
Fix build R1
This commit is contained in:
parent
f4a2021b9c
commit
b96afed8c5
@ -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 (
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user