Merged in feat/LOY-362-content-block (pull request #2897)
feat(LOY-362): fix content block * feat(LOY-362): fix content block Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
accordionSchema,
|
||||
} from "../schemas/blocks/accordion"
|
||||
import {
|
||||
//contentRefsSchema as blockContentRefsSchema,
|
||||
contentRefsSchema as blockContentRefsSchema,
|
||||
contentSchema as blockContentSchema,
|
||||
} from "../schemas/blocks/content"
|
||||
import { systemSchema } from "../schemas/system"
|
||||
@@ -30,7 +30,7 @@ export const promoCampaignPageAccordion = z
|
||||
|
||||
export const blocksSchema = z.discriminatedUnion("__typename", [
|
||||
promoCampaignPageAccordion,
|
||||
//promoCampaignPageContent,
|
||||
promoCampaignPageContent,
|
||||
])
|
||||
|
||||
export const CAMPAIGN_TYPES = {
|
||||
@@ -98,11 +98,11 @@ export const promoCampaignPageSchema = z
|
||||
})
|
||||
|
||||
/** REFS */
|
||||
/*const promoCampaignPageBlockContentRefs = z
|
||||
const promoCampaignPageBlockContentRefs = z
|
||||
.object({
|
||||
__typename: z.literal(PromoCampaignPageEnum.ContentStack.blocks.Content),
|
||||
})
|
||||
.merge(blockContentRefsSchema)*/
|
||||
.merge(blockContentRefsSchema)
|
||||
|
||||
const promoCampaignPageAccordionRefs = z
|
||||
.object({
|
||||
@@ -112,7 +112,7 @@ const promoCampaignPageAccordionRefs = z
|
||||
|
||||
const promoCampaignPageBlockRefsItem = z.discriminatedUnion("__typename", [
|
||||
promoCampaignPageAccordionRefs,
|
||||
//promoCampaignPageBlockContentRefs,
|
||||
promoCampaignPageBlockContentRefs,
|
||||
])
|
||||
|
||||
export const promoCampaignPageRefsSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user