x
This commit is contained in:
1 parent
a94e72ba0e
commit
91dacd20ce
2 files changed
+13
-11
No files matched your search
@@ -219,15 +219,17 @@ 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>}
|
||||
</div>
|
||||
</div>
|
||||
<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
|
||||
src={categoryThumbnailUrl}
|
||||
alt={categoryName}
|
||||
fill
|
||||
unoptimized
|
||||
className="object-cover"
|
||||
/>
|
||||
</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">
|
||||
<Image
|
||||
src={categoryThumbnailUrl}
|
||||
alt={categoryName}
|
||||
fill
|
||||
unoptimized
|
||||
className="object-cover"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</section>
|
||||
)}
|
||||
|
||||
@@ -12,7 +12,7 @@ export function splitCmsLayoutSections(sections: PageSection[]) {
|
||||
|
||||
return {
|
||||
announcementSections: activeSections.filter((section) => announcementTypes.has(sectionType(section))),
|
||||
heroSections: [], // Keep for backwards compatibility with page components
|
||||
bottomSections: activeSections.filter((section) => !announcementTypes.has(sectionType(section))),
|
||||
heroSections: activeSections.filter((section) => heroTypes.has(sectionType(section))),
|
||||
bottomSections: activeSections.filter((section) => !announcementTypes.has(sectionType(section)) && !heroTypes.has(sectionType(section))),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user