feat(SW-190): added hero to loyalty pages

This commit is contained in:
Erik Tiekstra
2024-08-13 13:58:06 +02:00
parent df076f50f5
commit f1ca9a0704
8 changed files with 66 additions and 3 deletions

View File

@@ -191,6 +191,11 @@ const loyaltyPageSidebarItem = z.discriminatedUnion("__typename", [
export const validateLoyaltyPageSchema = z.object({
heading: z.string().nullable(),
header: z
.object({
hero_image: z.any(),
})
.nullable(),
blocks: z.array(loyaltyPageBlockItem).nullable(),
sidebar: z.array(loyaltyPageSidebarItem).nullable(),
system: z.object({