form submission

This commit is contained in:
Alex Holliday committed 2026-02-09 18:29:36 +00:00
1 parent fafd581f06
commit 264e6f7d1f
4 files changed
+171 -41

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { z } from "zod";
import { registerSchema } from "@/Validation/register";
import { UserRoles } from "@/Types/User";
export const addTeamMemberSchema = registerSchema.extend({
role: z.array(z.enum(UserRoles)).min(1, "Please select a role"),
});
export type AddTeamMemberFormData = z.infer<typeof addTeamMemberSchema>;