diff --git a/src/assets/locals/ar.json b/src/assets/locals/ar.json
index 3a97f7c..e3c0455 100644
--- a/src/assets/locals/ar.json
+++ b/src/assets/locals/ar.json
@@ -196,6 +196,12 @@
"cancel": "إلغاء",
"success": "تم حذف العنصر من سلة المشتريات"
},
+ "clearCartConfirmation": {
+ "title": "مسح السلة",
+ "content": "هل أنت متأكد أنك تريد مسح السلة؟",
+ "confirm": "مسح",
+ "cancel": "إلغاء"
+ },
"quantity": "الكمية",
"price": "السعر",
"perItem": "للقطعة",
diff --git a/src/assets/locals/en.json b/src/assets/locals/en.json
index d294370..4e5f74d 100644
--- a/src/assets/locals/en.json
+++ b/src/assets/locals/en.json
@@ -213,6 +213,12 @@
"cancel": "Cancel",
"success": ",Item removed from cart"
},
+ "clearCartConfirmation": {
+ "title": "Clear Cart",
+ "content": "Are you sure you want to clear the cart?",
+ "confirm": "Clear",
+ "cancel": "Cancel"
+ },
"quantity": "Quantity",
"price": "Price",
"perItem": "Per Item",
diff --git a/src/pages/cart/components/CartMobileTabletLayout.tsx b/src/pages/cart/components/CartMobileTabletLayout.tsx
index 8337cf6..b937f7a 100644
--- a/src/pages/cart/components/CartMobileTabletLayout.tsx
+++ b/src/pages/cart/components/CartMobileTabletLayout.tsx
@@ -1,4 +1,4 @@
-import { Card, Divider, Space, Layout, Button } from "antd";
+import { Card, Divider, Space, Layout, Button, Popconfirm } from "antd";
import ArabicPrice from "components/ArabicPrice";
import CartActionsButtons from "components/CartActionsButtons/CartActionsButtons.tsx";
import ImageWithFallback from "components/ImageWithFallback";
@@ -101,27 +101,36 @@ export default function CartMobileTabletLayout({
-
- }
- size="small"
- className={styles.addButton}
- style={{
- width: 32,
- height: 32,
- border: "1px solid #DEDEE0",
- }}
- onClick={() => {
+ {
dispatch(clearCart());
}}
- />
+ okText={t("cart.clearCartConfirmation.confirm")}
+ cancelText={t("cart.clearCartConfirmation.cancel")}
+ okButtonProps={{ danger: true }}
+ placement={isRTL ? "left" : "right"}
+ >
+
+ }
+ size="small"
+ className={styles.addButton}
+ style={{
+ width: 32,
+ height: 32,
+ border: "1px solid #DEDEE0",
+ }}
+ />
+
{items.length >= 1 && (