x
This commit is contained in:
1 parent
235cf6047d
commit
88feee666f
7 files changed
+1309
-2
No files matched your search
@@ -34,6 +34,12 @@ import {
|
||||
HeroVideoSectionPayloadSchema,
|
||||
UspBarSectionPayloadSchema,
|
||||
CustomSectionPayloadSchema,
|
||||
HeroMinimalSectionPayloadSchema,
|
||||
HeroSplitMinimalSectionPayloadSchema,
|
||||
HeroVideoMinimalSectionPayloadSchema,
|
||||
BannerMinimalSectionPayloadSchema,
|
||||
AnnouncementBarMinimalSectionPayloadSchema,
|
||||
UspMinimalSectionPayloadSchema,
|
||||
PAGE_SECTION_LOCALIZED_PATHS,
|
||||
type SectionType,
|
||||
} from "@homaroma/types";
|
||||
@@ -1176,6 +1182,24 @@ export function validateSectionPayload(
|
||||
case "CUSTOM":
|
||||
schema = CustomSectionPayloadSchema;
|
||||
break;
|
||||
case "HERO_MINIMAL":
|
||||
schema = HeroMinimalSectionPayloadSchema;
|
||||
break;
|
||||
case "HERO_SPLIT_MINIMAL":
|
||||
schema = HeroSplitMinimalSectionPayloadSchema;
|
||||
break;
|
||||
case "HERO_VIDEO_MINIMAL":
|
||||
schema = HeroVideoMinimalSectionPayloadSchema;
|
||||
break;
|
||||
case "BANNER_MINIMAL":
|
||||
schema = BannerMinimalSectionPayloadSchema;
|
||||
break;
|
||||
case "ANNOUNCEMENT_BAR_MINIMAL":
|
||||
schema = AnnouncementBarMinimalSectionPayloadSchema;
|
||||
break;
|
||||
case "USP_MINIMAL":
|
||||
schema = UspMinimalSectionPayloadSchema;
|
||||
break;
|
||||
default:
|
||||
return {
|
||||
success: false,
|
||||
|
||||
Reference in new issue
Block a user