Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -168,7 +168,9 @@
|
||||
"customizable": "قابل للتخصيص",
|
||||
"youHaveXEarnedRewardsReadyToRedeem": "🎉 لديك {{rewards}} مكافأة مستحقة للاستخدام!",
|
||||
"justXMorePurchasesToUnlockYourFREEItem": "فقط {{cups}} أكثر للفتح الوجبة المجانية!",
|
||||
"youreJustXCupsAwayFromYourNextReward": "🎉 أنت فقط {{cups}} أكثر للحصول على المكافأة التالية!"
|
||||
"youreJustXCupsAwayFromYourNextReward": "🎉 أنت فقط {{cups}} أكثر للحصول على المكافأة التالية!",
|
||||
"callWaiter": "اتصل بالرادير",
|
||||
"balance": "الرصيد"
|
||||
},
|
||||
"cart": {
|
||||
"addSpecialRequestOptional": "إضافة طلب خاص (اختياري)",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -125,8 +125,13 @@ function MenuPage() {
|
||||
{orderType === OrderType.Redeem && (
|
||||
<div className={styles.frame}>
|
||||
<div className={styles.div}>
|
||||
<div className={styles.pickup}>Balance</div>
|
||||
<div className={styles.elementMin}>60 OMR</div>
|
||||
<div className={styles.pickup}>{t("menu.balance")}</div>
|
||||
<div className={styles.elementMin}>
|
||||
60{" "}
|
||||
{isRTL
|
||||
? restaurant?.local_currency
|
||||
: restaurant?.global_currency}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
@@ -209,7 +214,7 @@ function MenuPage() {
|
||||
color: "#09237D",
|
||||
}}
|
||||
>
|
||||
Call Waiter
|
||||
{t("menu.callWaiter")}
|
||||
</ProText>
|
||||
</Button>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user