Merged in feature/tier-matching-component (pull request #1175)
SAS Tier matching comparison block (SW-921) Approved-by: Joakim Jäderberg Approved-by: Matilda Landström
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
dynamicContentRefsSchema,
|
||||
dynamicContentSchema as blockDynamicContentSchema,
|
||||
} from "../schemas/blocks/dynamicContent"
|
||||
import { sasTierComparisonSchema } from "../schemas/blocks/sasTierComparison"
|
||||
import { hotelListingSchema } from "../schemas/blocks/hotelListing"
|
||||
import {
|
||||
shortcutsRefsSchema,
|
||||
@@ -104,6 +105,13 @@ export const contentPageAccordion = z
|
||||
})
|
||||
.merge(accordionSchema)
|
||||
|
||||
export const contentPageLoyaltyTierComparison = z
|
||||
.object({
|
||||
__typename: z.literal(
|
||||
ContentPageEnum.ContentStack.blocks.SasTierComparison
|
||||
),
|
||||
})
|
||||
.merge(sasTierComparisonSchema)
|
||||
export const contentPageHotelListing = z
|
||||
.object({
|
||||
__typename: z.literal(ContentPageEnum.ContentStack.blocks.HotelListing),
|
||||
@@ -119,6 +127,7 @@ export const blocksSchema = z.discriminatedUnion("__typename", [
|
||||
contentPageTable,
|
||||
contentPageTextCols,
|
||||
contentPageUspGrid,
|
||||
contentPageLoyaltyTierComparison,
|
||||
contentPageHotelListing,
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user