Added register

This commit is contained in:
PxlLoewe
2025-01-27 01:45:03 +01:00
parent e30c28a66f
commit 239e9b8302
18 changed files with 602 additions and 85 deletions

View File

@@ -10,7 +10,9 @@ export const Login = () => {
password: z.string().min(6),
});
const form = useForm({
type schemaType = z.infer<typeof schema>;
const form = useForm<schemaType>({
resolver: zodResolver(schema),
});
console.log(form.formState.errors);