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 <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-09-23 15:46:47 +03:30
co-authored by Cursor
parent 6c060e222c
commit 36a3eef6fb
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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
+1 -1
View File
@@ -41,7 +41,7 @@ const DECOR_CARDS = [
title: 'انواع',
subtitle: 'شیرینـــــی',
image: strawberryDecorate,
to: '/products/shirini',
to: '/products/pastry',
},
{
title: 'انواع',