fix transations
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user