mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-20 07:08:23 +03:00
formatting
This commit is contained in:
parent
9812db793b
commit
1c7f1095d8
@ -448,11 +448,8 @@ export function FieldTemplate(props: FieldTemplateProps) {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const errorsProps = errors?.props as
|
const errorsProps = errors?.props as { errors?: unknown[] } | undefined;
|
||||||
| { errors?: unknown[] }
|
const hasFieldErrors = !!errors && (errorsProps?.errors?.length ?? 0) > 0;
|
||||||
| undefined;
|
|
||||||
const hasFieldErrors =
|
|
||||||
!!errors && (errorsProps?.errors?.length ?? 0) > 0;
|
|
||||||
|
|
||||||
const renderStandardLabel = () => {
|
const renderStandardLabel = () => {
|
||||||
if (!shouldRenderStandardLabel) {
|
if (!shouldRenderStandardLabel) {
|
||||||
|
|||||||
@ -102,9 +102,5 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
|
|||||||
axios.get("/logout", { withCredentials: true });
|
axios.get("/logout", { withCredentials: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return <AuthContext value={{ auth, login, logout }}>{children}</AuthContext>;
|
||||||
<AuthContext value={{ auth, login, logout }}>
|
|
||||||
{children}
|
|
||||||
</AuthContext>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -125,11 +125,7 @@ export function DetailStreamProvider({
|
|||||||
isDetailMode,
|
isDetailMode,
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return <DetailStreamContext value={value}>{children}</DetailStreamContext>;
|
||||||
<DetailStreamContext value={value}>
|
|
||||||
{children}
|
|
||||||
</DetailStreamContext>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line react-refresh/only-export-components
|
// eslint-disable-next-line react-refresh/only-export-components
|
||||||
|
|||||||
@ -619,7 +619,9 @@ export default function SearchView({
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={value.id}
|
key={value.id}
|
||||||
ref={(item) => { itemRefs.current[index] = item; }}
|
ref={(item) => {
|
||||||
|
itemRefs.current[index] = item;
|
||||||
|
}}
|
||||||
data-start={value.start_time}
|
data-start={value.start_time}
|
||||||
className="relative flex flex-col rounded-lg"
|
className="relative flex flex-col rounded-lg"
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user