diff --git a/src/assets/locals/ar.json b/src/assets/locals/ar.json index e3c0455..5c4832a 100644 --- a/src/assets/locals/ar.json +++ b/src/assets/locals/ar.json @@ -168,7 +168,9 @@ "customizable": "قابل للتخصيص", "youHaveXEarnedRewardsReadyToRedeem": "🎉 لديك {{rewards}} مكافأة مستحقة للاستخدام!", "justXMorePurchasesToUnlockYourFREEItem": "فقط {{cups}} أكثر للفتح الوجبة المجانية!", - "youreJustXCupsAwayFromYourNextReward": "🎉 أنت فقط {{cups}} أكثر للحصول على المكافأة التالية!" + "youreJustXCupsAwayFromYourNextReward": "🎉 أنت فقط {{cups}} أكثر للحصول على المكافأة التالية!", + "callWaiter": "اتصل بالرادير", + "balance": "الرصيد" }, "cart": { "addSpecialRequestOptional": "إضافة طلب خاص (اختياري)", diff --git a/src/assets/locals/en.json b/src/assets/locals/en.json index 4e5f74d..a6b2f3e 100644 --- a/src/assets/locals/en.json +++ b/src/assets/locals/en.json @@ -180,7 +180,9 @@ "customizable": "Customizable", "youHaveXEarnedRewardsReadyToRedeem": "🎉 You have {{rewards}} rewards ready to redeem!", "justXMorePurchasesToUnlockYourFREEItem": "Just {{cups}} more purchases to unlock your FREE item!", - "youreJustXCupsAwayFromYourNextReward": "🎉 You're just {{cups}} stamps away from your next reward!" + "youreJustXCupsAwayFromYourNextReward": "🎉 You're just {{cups}} stamps away from your next reward!", + "callWaiter": "Call Waiter", + "balance": "Balance" }, "cart": { "remainingToPay": "Remaining to Pay", diff --git a/src/pages/menu/components/MenuList/ProductCard.tsx b/src/pages/menu/components/MenuList/ProductCard.tsx index e9a6df6..2c6d0ba 100644 --- a/src/pages/menu/components/MenuList/ProductCard.tsx +++ b/src/pages/menu/components/MenuList/ProductCard.tsx @@ -19,7 +19,7 @@ type Props = { export default function ProductCard({ item, setIsBottomSheetOpen }: Props) { const { isRTL } = useAppSelector((state) => state.locale); const { isMobile, isTablet, isDesktop } = useBreakPoint(); - const { items } = useAppSelector((state) => state.order); + const { items, restaurant } = useAppSelector((state) => state.order); const [isDialogOpen, setIsDialogOpen] = useState(false); // const navigate = useNavigate(); // const { subdomain } = useParams(); @@ -37,10 +37,7 @@ export default function ProductCard({ item, setIsBottomSheetOpen }: Props) { if (isDesktop) { setIsDialogOpen(true); } - setIsBottomSheetOpen(true); - // else { - // navigate(`/${subdomain}/product/${item.id}`); - // } + if (restaurant?.isOpened) setIsBottomSheetOpen(true); }; const hasOptions = diff --git a/src/pages/menu/page.tsx b/src/pages/menu/page.tsx index 320fef8..196f6f4 100644 --- a/src/pages/menu/page.tsx +++ b/src/pages/menu/page.tsx @@ -125,8 +125,13 @@ function MenuPage() { {orderType === OrderType.Redeem && (