fixed optional fields in website form
This commit is contained in:
parent
3bd87e9dfb
commit
c0563306e3
@ -6,12 +6,12 @@ export const schema = z.object({
|
|||||||
primary_color_hex: z.string().length(7),
|
primary_color_hex: z.string().length(7),
|
||||||
secondary_color_hex: z.string().length(7),
|
secondary_color_hex: z.string().length(7),
|
||||||
text_color_hex: z.string().length(7),
|
text_color_hex: z.string().length(7),
|
||||||
domain: z.string(),
|
domain: z.string().optional(),
|
||||||
use_freebie: z.boolean(),
|
use_freebie: z.boolean(),
|
||||||
freebie_name: z.string(),
|
freebie_name: z.string().optional(),
|
||||||
freebie_url: z.string(),
|
freebie_url: z.string().optional(),
|
||||||
freebie_image_url: z.string(),
|
freebie_image_url: z.string().optional(),
|
||||||
freebie_text: z.string(),
|
freebie_text: z.string().optional(),
|
||||||
title: z.string(),
|
title: z.string(),
|
||||||
subtitle: z.string(),
|
subtitle: z.string(),
|
||||||
}).superRefine((data, ctx) => {
|
}).superRefine((data, ctx) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user