bug fixes

This commit is contained in:
Alex Holliday committed 2026-08-07 11:50:47 -07:00
1 parent d0c8da1653
commit 2765ebfc3b
15 files changed
+122 -104

No files matched your search

@@ -9,9 +9,10 @@ import { TextField } from "@/Components/inputs";
interface FormTextFieldProps<T extends FieldValues> extends Omit<
React.ComponentProps<typeof TextField>,
"name" | "error"
"name" | "error" | "helperText"
> {
name: FieldPath<T>;
helperText?: string;
}
export const FormTextField = <T extends FieldValues>({
@@ -27,11 +28,11 @@ export const FormTextField = <T extends FieldValues>({
<TextField
{...field}
type="text"
{...rest}
value={field.value ?? ""}
error={!!fieldState.error}
helperText={fieldState.error?.message ?? rest.helperText ?? ""}
fullWidth
{...rest}
/>
)}
/>