mirror of
https://github.com/NicholaiVogel/dashore-incubator.git
synced 2026-03-30 22:38:56 +00:00
fix(wishlist): simplify form schema types for zod resolver
This commit is contained in:
parent
6e7ed3634b
commit
ef25666f5b
@ -42,8 +42,8 @@ const formSchema = z.object({
|
||||
description: z.string().min(1, "Description is required").max(500, "Description too long"),
|
||||
category: z.enum(["hardware", "software", "network", "storage", "other"]),
|
||||
priority: z.enum(["critical", "high", "medium", "low"]),
|
||||
estimatedCost: z.coerce.number().positive().optional().or(z.literal("")),
|
||||
link: z.string().url().optional().or(z.literal("")),
|
||||
estimatedCost: z.string().optional(),
|
||||
link: z.string().optional(),
|
||||
})
|
||||
|
||||
type FormData = z.infer<typeof formSchema>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user