diff --git a/src/pages/order/order.module.css b/src/pages/order/order.module.css
index b88f8c1..78b105e 100644
--- a/src/pages/order/order.module.css
+++ b/src/pages/order/order.module.css
@@ -217,3 +217,31 @@
}
}
+.backToHomePage {
+ width: 100%;
+ height: 48px;
+ display: flex;
+ justify-content: flex-start;
+ padding: 12px 18px !important;
+ row-gap: 10px;
+ transition: all 0.3s ease;
+ border-radius: 50px;
+}
+
+.backToHomePage :global(.ant-card-body) {
+ padding: 0px !important;
+ text-align: start;
+ width: 100%;
+}
+
+.nextIcon {
+ width: 24px;
+ height: 24px;
+}
+
+.backIcon {
+ width: 24px;
+ height: 24px;
+}
+
+
diff --git a/src/pages/order/page.tsx b/src/pages/order/page.tsx
index c97ff90..c2ca95b 100644
--- a/src/pages/order/page.tsx
+++ b/src/pages/order/page.tsx
@@ -12,16 +12,20 @@ import ProText from "components/ProText";
import ProTitle from "components/ProTitle";
import dayjs from "dayjs";
import { useTranslation } from "react-i18next";
-import { useParams } from "react-router-dom";
+import { useNavigate, useParams } from "react-router-dom";
import { useGetOrderDetailsQuery } from "redux/api/others";
import { useAppSelector } from "redux/hooks";
import Stepper from "./components/Stepper";
import styles from "./order.module.css";
+import BackIcon from "components/Icons/BackIcon";
+import NextIcon from "components/Icons/NextIcon";
export default function OrderPage() {
const { t } = useTranslation();
const { orderId } = useParams();
const { isRTL } = useAppSelector((state) => state.locale);
+ const { restaurant } = useAppSelector((state) => state.order);
+ const navigate = useNavigate();
const { data: orderDetails } = useGetOrderDetailsQuery(
{
@@ -174,6 +178,48 @@ export default function OrderPage() {
+ navigate(`/${restaurant?.subdomain}`)}
+ >
+
+
+
+
+ {isRTL ? restaurant?.nameAR : restaurant?.restautantName}
+
+
+ {isRTL ? (
+
+ ) : (
+
+ )}
+
+
+
>