Skip to content

Commit

Permalink
fix: disable user in userDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintShit committed Jul 22, 2024
1 parent 05c9f62 commit 5cb47af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/dashboard/src/components/UserDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ const schema = z.discriminatedUnion("status", [
status: z.literal("active"),
...baseSchema,
}),
z.object({
status: z.literal("disabled"),
...baseSchema,
}),
z.object({
status: z.literal("on_hold"),
on_hold_expire_duration: z.coerce
Expand Down

0 comments on commit 5cb47af

Please sign in to comment.