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:
co-authored by
Cursor
parent
6c060e222c
commit
36a3eef6fb
@@ -3,7 +3,7 @@ import './CategoriesDock.css'
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Fixed glossy dock — images and labels are hardcoded.
|
* 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 = [
|
const DOCK_CATEGORIES = [
|
||||||
{
|
{
|
||||||
@@ -28,19 +28,19 @@ const DOCK_CATEGORIES = [
|
|||||||
nameFa: 'دسر',
|
nameFa: 'دسر',
|
||||||
nameEn: 'Dessert',
|
nameEn: 'Dessert',
|
||||||
image: '/categories/desert.png',
|
image: '/categories/desert.png',
|
||||||
slug: 'desert',
|
slug: 'dessert',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
nameFa: 'شکلات',
|
nameFa: 'شکلات',
|
||||||
nameEn: 'Chocolate',
|
nameEn: 'Chocolate',
|
||||||
image: '/categories/Choclate.png',
|
image: '/categories/Choclate.png',
|
||||||
slug: 'chocolate',
|
slug: 'choclate',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
nameFa: 'باقلوا',
|
nameFa: 'باقلوا',
|
||||||
nameEn: 'Baklava',
|
nameEn: 'Baklava',
|
||||||
image: '/categories/baghlava.png',
|
image: '/categories/baghlava.png',
|
||||||
slug: 'baklava',
|
slug: 'baklava-and-halva',
|
||||||
},
|
},
|
||||||
] as const
|
] as const
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ const DECOR_CARDS = [
|
|||||||
title: 'انواع',
|
title: 'انواع',
|
||||||
subtitle: 'شیرینـــــی',
|
subtitle: 'شیرینـــــی',
|
||||||
image: strawberryDecorate,
|
image: strawberryDecorate,
|
||||||
to: '/products/shirini',
|
to: '/products/pastry',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'انواع',
|
title: 'انواع',
|
||||||
|
|||||||
Reference in New Issue
Block a user