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

View File

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

View File

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

View File

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