fix(BOOK-661): Updated themes and correct variables for campaign hero
Approved-by: Matilda Landström
This commit is contained in:
@@ -58,7 +58,18 @@ export const blocksSchema = z.discriminatedUnion("__typename", [
|
||||
export const heroSchema = z.object({
|
||||
image: transformedImageVaultAssetSchema,
|
||||
heading: z.string(),
|
||||
theme: z.enum(["Peach", "Burgundy"]).default("Peach"),
|
||||
theme: z
|
||||
.enum(["Peach", "Burgundy"])
|
||||
.nullish()
|
||||
.transform((theme) => {
|
||||
switch (theme) {
|
||||
case "Burgundy":
|
||||
return "Primary 3"
|
||||
case "Peach":
|
||||
default:
|
||||
return "Accent"
|
||||
}
|
||||
}),
|
||||
benefits: z
|
||||
.array(z.string())
|
||||
.nullish()
|
||||
|
||||
Reference in New Issue
Block a user