formatting

This commit is contained in:
Josh Hawkins 2026-03-04 20:02:12 -06:00
parent 9812db793b
commit 1c7f1095d8
4 changed files with 7 additions and 16 deletions

View File

@ -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) {

View File

@ -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>;
}

View File

@ -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

View File

@ -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"
>