From d8438e2d846d5b61a5fdf1e30e53bb3ee9b95e7e Mon Sep 17 00:00:00 2001 From: toqvist Date: Wed, 3 Apr 2024 14:23:08 +0200 Subject: [PATCH] Add sample form --- astro/src/components/AddRetailerForm.tsx | 54 ++++++++++++------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/astro/src/components/AddRetailerForm.tsx b/astro/src/components/AddRetailerForm.tsx index 2e9ef23..5bb25f5 100644 --- a/astro/src/components/AddRetailerForm.tsx +++ b/astro/src/components/AddRetailerForm.tsx @@ -22,46 +22,46 @@ export function AddRetailerForm() { message: "Username must be at least 2 characters.", }), }) - - + + const form = useForm>({ resolver: zodResolver(formSchema), defaultValues: { username: "", }, }) - + function onSubmit(values: z.infer) { // Do something with the form values. // ✅ This will be type-safe and validated according to z schema. console.log(values) } - + return (
-
-
- - ( - - Username - - - - - This is your public display name. - - - - )} - /> - - - -
+
+
+ + ( + + Username + + + + + This is your public display name. + + + + )} + /> + + + +
) }