take "orderType" from url

This commit is contained in:
2025-10-28 20:29:16 +03:00
parent 85ec18f6bb
commit ad9c9ce516
4 changed files with 41 additions and 17 deletions

View File

@@ -53,7 +53,7 @@ export default function RestaurantServices({
/>
),
color: "bg-blue-50 text-blue-600",
href: `/${id}/menu?orderType=dine-in`,
href: `/${id}/menu?orderType=${OrderType.DineIn}`,
},
]) ||
[]),
@@ -68,7 +68,7 @@ export default function RestaurantServices({
/>
),
color: "bg-green-50 text-green-600",
href: `/${id}/menu?orderType=pickup`,
href: `/${id}/menu?orderType=${OrderType.Pickup}`,
},
]) ||
[]),
@@ -83,7 +83,7 @@ export default function RestaurantServices({
/>
),
color: "bg-pink-50 text-pink-600",
href: `/${id}/menu?orderType=gift`,
href: `/${id}/menu?orderType=${OrderType.Gift}`,
},
]) ||
[]),
@@ -96,7 +96,7 @@ export default function RestaurantServices({
<ToRoomIcon className={styles.serviceIcon + " " + styles.roomIcon} />
),
color: "bg-purple-50 text-purple-600",
href: `/${id}/menu?orderType=room`,
href: `/${id}/menu?orderType=${OrderType.ToRoom}`,
},
]) ||
[]),
@@ -111,7 +111,7 @@ export default function RestaurantServices({
/>
),
color: "bg-orange-50 text-orange-600",
href: `/${id}/menu?orderType=office`,
href: `/${id}/menu?orderType=${OrderType.ToOffice}`,
},
]) ||
[]),
@@ -126,7 +126,7 @@ export default function RestaurantServices({
/>
),
color: "bg-indigo-50 text-indigo-600",
href: `/${id}/menu?orderType=booking`,
href: `/${id}/menu?orderType=${OrderType.Booking}`,
},
]) ||
[]),