x
This commit is contained in:
1 parent
f7ac94ca0d
commit
335f3b4f59
41 files changed
+809
-413
No files matched your search
@@ -12,10 +12,7 @@ export function splitCmsLayoutSections(sections: PageSection[]) {
|
||||
|
||||
return {
|
||||
announcementSections: activeSections.filter((section) => announcementTypes.has(sectionType(section))),
|
||||
heroSections: activeSections.filter((section) => heroTypes.has(sectionType(section))),
|
||||
bottomSections: activeSections.filter((section) => {
|
||||
const type = sectionType(section)
|
||||
return !announcementTypes.has(type) && !heroTypes.has(type)
|
||||
}),
|
||||
heroSections: [], // Keep for backwards compatibility with page components
|
||||
bottomSections: activeSections.filter((section) => !announcementTypes.has(sectionType(section))),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user