mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-19 01:17:06 +03:00
CHange order to fix error
This commit is contained in:
parent
f60b981ab8
commit
75f2478169
@ -52,6 +52,13 @@ export default function LPRDetailDialog({
|
|||||||
}: LPRDetailDialogProps) {
|
}: LPRDetailDialogProps) {
|
||||||
const [page, setPage] = useState<LPRTab>("details");
|
const [page, setPage] = useState<LPRTab>("details");
|
||||||
|
|
||||||
|
// content components
|
||||||
|
const Overlay = isDesktop ? Dialog : MobilePage;
|
||||||
|
const Content = isDesktop ? DialogContent : MobilePageContent;
|
||||||
|
const Header = isDesktop ? DialogHeader : MobilePageHeader;
|
||||||
|
const Title = isDesktop ? DialogTitle : MobilePageTitle;
|
||||||
|
const Description = isDesktop ? DialogDescription : MobilePageDescription;
|
||||||
|
|
||||||
const timestamp = useFormattedTimestamp(
|
const timestamp = useFormattedTimestamp(
|
||||||
event?.start_time ?? 0,
|
event?.start_time ?? 0,
|
||||||
config?.ui.time_format == "24hour" ? "%b %-d %Y, %H:%M" : "%b %-d %Y, %I:%M %p",
|
config?.ui.time_format == "24hour" ? "%b %-d %Y, %H:%M" : "%b %-d %Y, %I:%M %p",
|
||||||
@ -99,13 +106,6 @@ export default function LPRDetailDialog({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// content
|
|
||||||
const Overlay = isDesktop ? Dialog : MobilePage;
|
|
||||||
const Content = isDesktop ? DialogContent : MobilePageContent;
|
|
||||||
const Header = isDesktop ? DialogHeader : MobilePageHeader;
|
|
||||||
const Title = isDesktop ? DialogTitle : MobilePageTitle;
|
|
||||||
const Description = isDesktop ? DialogDescription : MobilePageDescription;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Overlay open={open} onOpenChange={setOpen}>
|
<Overlay open={open} onOpenChange={setOpen}>
|
||||||
<Content
|
<Content
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user