x
This commit is contained in:
1 parent
a94e72ba0e
commit
91dacd20ce
2 files changed
+4
-2
No files matched your search
@@ -219,6 +219,7 @@ export default async function CategoryPage({ params }: { params: Promise<{ id: s
|
|||||||
{category._count && <p className="mt-3 text-muted-text text-sm">{category._count.products} products available in this collection</p>}
|
{category._count && <p className="mt-3 text-muted-text text-sm">{category._count.products} products available in this collection</p>}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{categoryThumbnailUrl && (
|
||||||
<div className="relative w-48 h-48 md:w-72 md:h-72 shrink-0 rounded-3xl overflow-hidden shadow-lg border border-line-primary/5">
|
<div className="relative w-48 h-48 md:w-72 md:h-72 shrink-0 rounded-3xl overflow-hidden shadow-lg border border-line-primary/5">
|
||||||
<Image
|
<Image
|
||||||
src={categoryThumbnailUrl}
|
src={categoryThumbnailUrl}
|
||||||
@@ -228,6 +229,7 @@ export default async function CategoryPage({ params }: { params: Promise<{ id: s
|
|||||||
className="object-cover"
|
className="object-cover"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export function splitCmsLayoutSections(sections: PageSection[]) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
announcementSections: activeSections.filter((section) => announcementTypes.has(sectionType(section))),
|
announcementSections: activeSections.filter((section) => announcementTypes.has(sectionType(section))),
|
||||||
heroSections: [], // Keep for backwards compatibility with page components
|
heroSections: activeSections.filter((section) => heroTypes.has(sectionType(section))),
|
||||||
bottomSections: activeSections.filter((section) => !announcementTypes.has(sectionType(section))),
|
bottomSections: activeSections.filter((section) => !announcementTypes.has(sectionType(section)) && !heroTypes.has(sectionType(section))),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user