x
This commit is contained in:
1 parent
27cc56abaf
commit
0c3faaba29
11 files changed
+2286
-482
No files matched your search
@@ -3,7 +3,7 @@ import Image from 'next/image'
|
||||
import { notFound } from 'next/navigation'
|
||||
import type { Metadata } from 'next'
|
||||
import { generateSeoMetadata } from '@/lib/seo'
|
||||
import type { Category, Product } from '@homaroma/types'
|
||||
import type { Category, Product, AttributeDefinition } from '@homaroma/types'
|
||||
import { getCategoryImage, getCategoryMedia, resolveCategoryMediaUrl } from '@homaroma/types'
|
||||
import DynamicPageRenderer from '@/components/dynamic/DynamicPageRenderer'
|
||||
import ProductCard from '@/components/ProductCard'
|
||||
@@ -17,6 +17,7 @@ import { resolveLocalized } from '@/lib/localization'
|
||||
// lang is extracted from params
|
||||
type CategoryProductsResponse = {
|
||||
category?: Category
|
||||
availableFilters?: AttributeDefinition[]
|
||||
data?: Product[]
|
||||
}
|
||||
|
||||
@@ -299,6 +300,7 @@ export default async function CategoryPage({ params }: { params: Promise<{ id: s
|
||||
products={products}
|
||||
categoryName={categoryName}
|
||||
filterConfig={category.filterConfig}
|
||||
availableFilters={categoryProductsResult.data?.availableFilters || category.availableFilters || []}
|
||||
layoutGridClass={getProductGridClass()}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user