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>
|
<Title>License Plate Image</Title>
|
||||||
<Description className="sr-only">License plate image details</Description>
|
<Description className="sr-only">License plate image details</Description>
|
||||||
</Header>
|
</Header>
|
||||||
<PlateTab lprImage={lprImage} config={config} />
|
<PlateTab lprImage={lprImage} />
|
||||||
</Content>
|
</Content>
|
||||||
</Overlay>
|
</Overlay>
|
||||||
);
|
);
|
||||||
@ -169,12 +169,11 @@ export default function LPRDetailDialog({
|
|||||||
{page === "raw" && (
|
{page === "raw" && (
|
||||||
<PlateTab
|
<PlateTab
|
||||||
lprImage={rawImage}
|
lprImage={rawImage}
|
||||||
config={config}
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<PlateTab lprImage={lprImage} config={config} />
|
<PlateTab lprImage={lprImage} />
|
||||||
)}
|
)}
|
||||||
</Content>
|
</Content>
|
||||||
</Overlay>
|
</Overlay>
|
||||||
@ -344,10 +343,9 @@ function VideoTab({ event }: VideoTabProps) {
|
|||||||
|
|
||||||
type PlateTabProps = {
|
type PlateTabProps = {
|
||||||
lprImage: string;
|
lprImage: string;
|
||||||
config: FrigateConfig;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function PlateTab({ lprImage, config }: PlateTabProps) {
|
function PlateTab({ lprImage }: PlateTabProps) {
|
||||||
const [imgRef, imgLoaded, onImgLoad] = useImageLoaded();
|
const [imgRef, imgLoaded, onImgLoad] = useImageLoaded();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -21,11 +21,8 @@ import { useFormattedTimestamp } from "@/hooks/use-date-utils";
|
|||||||
import { LuArrowDownUp, LuTrash2 } from "react-icons/lu";
|
import { LuArrowDownUp, LuTrash2 } from "react-icons/lu";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { toast } from "sonner";
|
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 SortOption = "score_desc" | "score_asc" | "time_desc" | "time_asc";
|
||||||
type ViewMode = "detected" | "raw";
|
|
||||||
|
|
||||||
export default function LPRDebug() {
|
export default function LPRDebug() {
|
||||||
const { data: config } = useSWR<FrigateConfig>("config");
|
const { data: config } = useSWR<FrigateConfig>("config");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user