diff --git a/src/assets/locals/ar.json b/src/assets/locals/ar.json
index 63cb0b6..9702b48 100644
--- a/src/assets/locals/ar.json
+++ b/src/assets/locals/ar.json
@@ -311,7 +311,7 @@
"selectOffice": "اختر المكتب",
"officeNo": "رقم المكتب",
"company": "الشركة",
- "contactPerson": "الاتصال بالشخص",
+ "contactPerson": "اسم الموظف",
"phone": "الهاتف",
"giftDetails": "تفاصيل الهدية",
"changeGift": "تغيير الهدية",
diff --git a/src/pages/address/address.module.css b/src/pages/address/address.module.css
index a5da2fc..9ef339e 100644
--- a/src/pages/address/address.module.css
+++ b/src/pages/address/address.module.css
@@ -258,11 +258,17 @@
}
.iconButtonStyle {
+ position: relative;
+ top: 5px;
+ width: 32px !important;
+ height: 32px !important;
background-color: rgba(255, 183, 0, 0.08);
}
.detailLabelStyle {
- font-size: 14px;
+ position: relative;
+ top: -5px;
+ font-size: 12px;
}
.smallTextStyle {
diff --git a/src/pages/checkout/components/GiftDetails.tsx b/src/pages/checkout/components/GiftDetails.tsx
index 1c49c9e..046a327 100644
--- a/src/pages/checkout/components/GiftDetails.tsx
+++ b/src/pages/checkout/components/GiftDetails.tsx
@@ -87,35 +87,33 @@ export const GiftDetails = () => {
+ icon={
}
+ />
{t("address.receiverName")}
-
{giftDetails?.receiverName}
+
+ {giftDetails?.receiverName}
+
+ icon={
}
+ />
{t("address.receiverPhone")}
-
{giftDetails?.receiverPhone}
+
+ {giftDetails?.receiverPhone}
+
diff --git a/src/pages/checkout/components/OfficeDetails.tsx b/src/pages/checkout/components/OfficeDetails.tsx
index 6a593e3..7a5938a 100644
--- a/src/pages/checkout/components/OfficeDetails.tsx
+++ b/src/pages/checkout/components/OfficeDetails.tsx
@@ -73,35 +73,29 @@ export const OfficeDetails = () => {
+ icon={
}
+ />
{t("address.floorNo")}
-
{officeDetails?.floorNo}
+
{officeDetails?.floorNo}
+ icon={
}
+ />
{t("address.officeNo")}
-
{officeDetails?.officeNo}
+
{officeDetails?.officeNo}
diff --git a/src/pages/checkout/components/RoomDetails.tsx b/src/pages/checkout/components/RoomDetails.tsx
index d0b1184..1b24828 100644
--- a/src/pages/checkout/components/RoomDetails.tsx
+++ b/src/pages/checkout/components/RoomDetails.tsx
@@ -72,35 +72,29 @@ export const RoomDetails = () => {
+ icon={
}
+ />
{t("address.floorNo")}
-
{roomDetails?.floorNo}
+
{roomDetails?.floorNo}
+ icon={
}
+ />
{t("address.roomNo")}
-
{roomDetails?.roomNo}
+
{roomDetails?.roomNo}
diff --git a/src/pages/menu/components/SearchMenu/SearchMenu.tsx b/src/pages/menu/components/SearchMenu/SearchMenu.tsx
index 9a365a2..16d022a 100644
--- a/src/pages/menu/components/SearchMenu/SearchMenu.tsx
+++ b/src/pages/menu/components/SearchMenu/SearchMenu.tsx
@@ -1,30 +1,15 @@
-import { StarOutlined } from "@ant-design/icons";
-import { Badge, Button, Card } from "antd";
-import ArabicPrice from "components/ArabicPrice";
-import ImageWithFallback from "components/ImageWithFallback";
-import { ItemDescriptionIcons } from "components/ItemDescriptionIcons/ItemDescriptionIcons";
import ProText from "components/ProText";
-import useBreakPoint from "hooks/useBreakPoint";
-import { AddToCartButton } from "pages/menu/components/AddToCartButton/AddToCartButton.tsx";
import { useTranslation } from "react-i18next";
-import { useNavigate, useParams } from "react-router-dom";
-import { useAppSelector } from "redux/hooks";
-import { colors } from "ThemeConstants";
import { Product } from "utils/types/appTypes";
import styles from "../MenuList/MenuList.module.css";
+import ProductCard from "../MenuList/ProductCard";
interface MenuListProps {
products: Product[];
}
export function SearchMenu({ products }: MenuListProps) {
- const { isRTL } = useAppSelector((state) => state.locale);
- const { isMobile, isTablet } = useBreakPoint();
- const { items } = useAppSelector((state) => state.order);
- const navigate = useNavigate();
const { t } = useTranslation();
- const { themeName } = useAppSelector((state) => state.theme);
- const { subdomain } = useParams();
// Show error state if data exists but has no products
if (products && (!products || products.length === 0)) {
@@ -43,171 +28,7 @@ export function SearchMenu({ products }: MenuListProps) {
{products.map((item: Product) => (
-
{
- localStorage.setItem("product", JSON.stringify(item));
- navigate(`/${subdomain}/product/${item.id}`);
- }}
- >
-
-
-
-
- {isRTL ? item.name : item.nameOther}
-
- {item.description && (
-
- {item.description}
-
- )}
-
-
- {item.original_price !== item.price && (
-
- )}
-
-
-
-
-
-
-
-
-
-
- {item.isHasLoyalty && (
-
}
- style={{ width: 24, height: 24 }}
- />
- )}
-
-
-
- {items.find((i) => i.id === item.id) && (
-
i.id === item.id)?.quantity}
- className={
- styles.cartBadge +
- " " +
- (isRTL ? styles.cartBadgeRTL : styles.cartBadgeLTR)
- }
- style={{
- backgroundColor: colors.primary,
- }}
- title={`${
- items.find((i) => i.id === item.id)?.quantity
- } in cart`}
- />
- )}
-
-
-
-
+
))}
diff --git a/src/pages/product/components/ProductFooter.tsx b/src/pages/product/components/ProductFooter.tsx
index c6dd302..138f165 100644
--- a/src/pages/product/components/ProductFooter.tsx
+++ b/src/pages/product/components/ProductFooter.tsx
@@ -1,4 +1,8 @@
-import { RightOutlined, ShoppingCartOutlined } from "@ant-design/icons";
+import {
+ LeftOutlined,
+ RightOutlined,
+ ShoppingCartOutlined,
+} from "@ant-design/icons";
import { Button, Form, Input, message, Row } from "antd";
import { addItem } from "features/order/orderSlice";
import useBreakPoint from "hooks/useBreakPoint";
@@ -176,7 +180,8 @@ export default function ProductFooter({
className={styles.editButton}
onClick={() => setIsSpecialRequestOpen(true)}
>
- {t("cart.editNote")}
+ {t("cart.editNote")}{" "}
+ {isRTL ? : }
}
/>