From 36a3eef6fb7a7c7896b8cdc589eefe680c060c79 Mon Sep 17 00:00:00 2001 From: Alireza Hassani Date: Wed, 23 Sep 2026 15:46:47 +0330 Subject: [PATCH] Connect categories dock to production API slugs. Use dessert, choclate, and baklava-and-halva so dock links match live catalog categories. Co-authored-by: Cursor --- src/components/CategoriesDock.tsx | 8 ++++---- src/pages/HomePage.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/CategoriesDock.tsx b/src/components/CategoriesDock.tsx index 001b01b..88a089d 100644 --- a/src/components/CategoriesDock.tsx +++ b/src/components/CategoriesDock.tsx @@ -3,7 +3,7 @@ import './CategoriesDock.css' /** * Fixed glossy dock — images and labels are hardcoded. - * Each item links to `/products/:slug` matching the API category slug. + * Slugs match production API categories on shirinibalout.com. */ const DOCK_CATEGORIES = [ { @@ -28,19 +28,19 @@ const DOCK_CATEGORIES = [ nameFa: 'دسر', nameEn: 'Dessert', image: '/categories/desert.png', - slug: 'desert', + slug: 'dessert', }, { nameFa: 'شکلات', nameEn: 'Chocolate', image: '/categories/Choclate.png', - slug: 'chocolate', + slug: 'choclate', }, { nameFa: 'باقلوا', nameEn: 'Baklava', image: '/categories/baghlava.png', - slug: 'baklava', + slug: 'baklava-and-halva', }, ] as const diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index bb19d2a..e851708 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -41,7 +41,7 @@ const DECOR_CARDS = [ title: 'انواع', subtitle: 'شیرینـــــی', image: strawberryDecorate, - to: '/products/shirini', + to: '/products/pastry', }, { title: 'انواع',