feat: add zod validation for role and user forms
This commit is contained in:
@@ -54,6 +54,9 @@ export default function UsersPage() {
|
||||
userId,
|
||||
roleId,
|
||||
setRoleId,
|
||||
errors,
|
||||
touchedFields,
|
||||
canSubmit,
|
||||
isSaving,
|
||||
} = userForm;
|
||||
const statusMutation = useUserStatusMutation();
|
||||
@@ -145,9 +148,12 @@ export default function UsersPage() {
|
||||
onOpenChange={setIsSheetOpen}
|
||||
userId={userId}
|
||||
register={register}
|
||||
errors={errors}
|
||||
touchedFields={touchedFields}
|
||||
onSubmit={handleSubmit}
|
||||
roleId={roleId}
|
||||
onRoleChange={setRoleId}
|
||||
canSubmit={canSubmit}
|
||||
isSaving={isSaving}
|
||||
/>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user