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