Перенес mockup данные на бэкенд
Some checks failed
CI / main (push) Has been cancelled

This commit is contained in:
Igor Rybakov
2026-03-06 23:51:52 +02:00
parent b9918116ae
commit cb527f4961
35 changed files with 468 additions and 85 deletions

View File

@@ -1,5 +1,5 @@
import { Suspense } from 'react';
import { Product } from '@/types';
import { Product, Brand, Category } from '@/types';
import { Breadcrumb } from '@/components/Breadcrumb/Breadcrumb';
import { CatalogSidebar } from '@/components/CatalogSidebar/CatalogSidebar';
import { ProductCard } from '@/components/ProductCard/ProductCard';
@@ -15,6 +15,9 @@ interface CatalogViewProps {
breadcrumbItems: BreadcrumbItem[];
basePath?: string;
hiddenFilters?: string[];
brands: Brand[];
categories: Category[];
allProducts?: Product[];
}
export function CatalogView({
@@ -22,11 +25,20 @@ export function CatalogView({
breadcrumbItems,
basePath = '/catalog',
hiddenFilters,
brands,
categories,
allProducts,
}: CatalogViewProps) {
return (
<div className={styles.layout}>
<Suspense fallback={null}>
<CatalogSidebar basePath={basePath} hiddenFilters={hiddenFilters} />
<CatalogSidebar
basePath={basePath}
hiddenFilters={hiddenFilters}
brands={brands}
categories={categories}
products={allProducts ?? products}
/>
</Suspense>
<div className={styles.main}>
<div className={styles.header}>