validation
This commit is contained in:
1 parent
af4c9d8f91
commit
b6004241e7
8 files changed
+113
-10
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { passwordSchema, type PasswordFormData } from "@/Validation/password";
|
||||
|
||||
export const usePasswordForm = () => {
|
||||
return {
|
||||
resolver: zodResolver(passwordSchema),
|
||||
defaults: {
|
||||
currentPassword: "",
|
||||
newPassword: "",
|
||||
confirm: "",
|
||||
} as PasswordFormData,
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user