diff --git a/src/components/ArabicPrice/ArabicPrice.tsx b/src/components/ArabicPrice/ArabicPrice.tsx index 4cf9585..89f878e 100644 --- a/src/components/ArabicPrice/ArabicPrice.tsx +++ b/src/components/ArabicPrice/ArabicPrice.tsx @@ -56,14 +56,14 @@ const ArabicPrice: React.FC = ({ > {formattedPrice} - + (isTablet ? "tablet" : "mobile"); const navigate = useNavigate(); - + const dispatch = useAppDispatch(); const getMenuItemImageStyle = () => { if (isMobile) { return { @@ -63,198 +63,189 @@ export default function CartMobileTabletLayout({ {/* Table Number */} {(orderType === OrderType.DineIn || orderType === OrderType.ToOffice) && }
-
- + +
-
- - {t("cart.yourOrder")} - -
- - -
- {items.length >= 1 && ( - - )} - {items.map((item, index) => ( -
- - -
+ } + size="small" + className={styles.addButton} + style={{ + width: 32, + height: 32, + border: "1px solid #DEDEE0", + }} + onClick={() => { + dispatch(clearCart()); + }} + /> +
+ + {items.length >= 1 && ( + + )} + {items.map((item, index) => ( +
+ + +
+ - - {item.name}{" "} - - {isRTL - ? (item.variant as Variant)?.optionsAR?.[0] - ?.value - : (item.variant as Variant)?.options?.[0] - ?.value} - - -
- - {item.description} - -
-
+ +
+ - -
-
-
- +
+
+ -
- -
+
+ +
+ +
+
+ - {index !== items.length - 1 && ( - - )} -
- ))} -
+ ))} + - -
+ }`, + ); + }} + > + {t("cart.addMore")} + +
diff --git a/src/pages/checkout/components/BriefMenuCard.tsx b/src/pages/checkout/components/BriefMenuCard.tsx index d9bdf92..6c4668a 100644 --- a/src/pages/checkout/components/BriefMenuCard.tsx +++ b/src/pages/checkout/components/BriefMenuCard.tsx @@ -7,6 +7,7 @@ import { useAppSelector } from "redux/hooks"; import { selectCart } from "features/order/orderSlice"; import { useNavigate, useParams } from "react-router-dom"; import { useGetOrderDetailsQuery } from "redux/api/others"; +import BackIcon from "components/Icons/BackIcon"; export default function BriefMenuCard() { const { t } = useTranslation(); @@ -24,6 +25,7 @@ export default function BriefMenuCard() { }, ); const totalItems = items.length || orderDetails?.orderItems.length; + const { isRTL } = useAppSelector((state) => state.locale); return ( <> @@ -53,12 +55,18 @@ export default function BriefMenuCard() { cursor: "pointer", }} > - + {t("checkout.viewOrder")} ( {totalItems} {t("cart.items")} ) - + {isRTL ? : }