fix transations

This commit is contained in:
2026-01-14 18:53:09 +03:00
parent 9d061ae8a6
commit 3a72b8e933
4 changed files with 8 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ import styles from "./MenuList.module.css";
import ProductCard from "pages/menu/components/MenuList/ProductCard.tsx";
import { ProductBottomSheet } from "pages/product/components/ProductBottomSheet";
import { useState } from "react";
import { Category } from "utils/types/appTypes";
interface MenuListProps {
data:
@@ -54,7 +55,7 @@ export function MenuList({ data, categoryRefs }: MenuListProps) {
return (
<>
<div className={styles.menuSections}>
{data?.categories?.map((category, index) => {
{data?.categories?.map((category: Category, index) => {
const categoryProducts = productsByCategory?.[category.id] || [];
if (categoryProducts.length === 0) return null;
@@ -81,7 +82,7 @@ export function MenuList({ data, categoryRefs }: MenuListProps) {
}}
level={5}
>
{isRTL ? category.name : category.name}
{isRTL ? category.nameAR : category.nameEN}
</ProTitle>
)}
<div className={styles.menuItemsGrid}>