form
This commit is contained in:
1 parent
31cc9cd294
commit
1808db5cd7
3 files changed
+139
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { profileSchema, type ProfileFormData } from "@/Validation/profile";
|
||||
|
||||
export const useProfileForm = () => {
|
||||
return {
|
||||
resolver: zodResolver(profileSchema),
|
||||
defaults: {
|
||||
firstName: "",
|
||||
lastName: "",
|
||||
profileImage: null,
|
||||
deleteProfileImage: false,
|
||||
} as ProfileFormData,
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user