feat(BOOK-735): Removed video block from start page and collection page
Approved-by: Bianca Widstam
This commit is contained in:
@@ -19,7 +19,6 @@ import {
|
||||
joinScandicFriendsBlockRefsSchema,
|
||||
joinScandicFriendsBlockSchema,
|
||||
} from "../schemas/blocks/joinScandicFriends"
|
||||
import { videoBlockRefsSchema, videoBlockSchema } from "../schemas/blocks/video"
|
||||
import {
|
||||
videoCardRefsSchema,
|
||||
videoCardSchema,
|
||||
@@ -57,19 +56,12 @@ const startPageVideoCard = z
|
||||
})
|
||||
.merge(videoCardSchema)
|
||||
|
||||
const startPageVideo = z
|
||||
.object({
|
||||
__typename: z.literal(StartPageEnum.ContentStack.blocks.Video),
|
||||
})
|
||||
.merge(videoBlockSchema)
|
||||
|
||||
export const blocksSchema = z.discriminatedUnion("__typename", [
|
||||
startPageCards,
|
||||
startPageFullWidthCampaign,
|
||||
startPageCarouselCards,
|
||||
startPageJoinScandicFriends,
|
||||
startPageVideoCard,
|
||||
startPageVideo,
|
||||
])
|
||||
|
||||
export const startPageSchema = z.object({
|
||||
@@ -125,19 +117,12 @@ const startPageVideoCardRef = z
|
||||
})
|
||||
.merge(videoCardRefsSchema)
|
||||
|
||||
const startPageVideoRef = z
|
||||
.object({
|
||||
__typename: z.literal(StartPageEnum.ContentStack.blocks.Video),
|
||||
})
|
||||
.merge(videoBlockRefsSchema)
|
||||
|
||||
const startPageBlockRefsItem = z.discriminatedUnion("__typename", [
|
||||
startPageCardsRefs,
|
||||
startPageFullWidthCampaignRef,
|
||||
startPageCarouselCardsRef,
|
||||
startPageJoinScandicFriendsRef,
|
||||
startPageVideoCardRef,
|
||||
startPageVideoRef,
|
||||
])
|
||||
|
||||
export const startPageRefsSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user