diff --git a/src/pages/order/page.tsx b/src/pages/order/page.tsx
index 81c7a56..2abae8a 100644
--- a/src/pages/order/page.tsx
+++ b/src/pages/order/page.tsx
@@ -33,8 +33,6 @@ export default function OrderPage() {
},
);
- console.log(orderDetails);
-
return (
<>
{t("order.title")}
diff --git a/src/pages/restaurant/RestaurantServices.tsx b/src/pages/restaurant/RestaurantServices.tsx
index d776319..4d2906d 100644
--- a/src/pages/restaurant/RestaurantServices.tsx
+++ b/src/pages/restaurant/RestaurantServices.tsx
@@ -9,9 +9,10 @@ import SendGiftIcon from "components/Icons/SendGiftIcon";
import ToOfficeIcon from "components/Icons/ToOfficeIcon";
import ToRoomIcon from "components/Icons/ToRoomIcon";
import ProTitle from "components/ProTitle";
+import { updateOrderType } from "features/order/orderSlice";
import { useTranslation } from "react-i18next";
import { Link } from "react-router-dom";
-import { useAppSelector } from "redux/hooks";
+import { useAppDispatch, useAppSelector } from "redux/hooks";
import styles from "./restaurant.module.css";
interface RestaurantServicesProps {
@@ -37,7 +38,8 @@ export default function RestaurantServices({
const { t } = useTranslation();
const { isRTL } = useAppSelector((state) => state.locale);
const id = localStorage.getItem("restaurantName");
-
+ const dispatch = useAppDispatch();
+
const services = [
...((dineIn && [
{
@@ -161,7 +163,7 @@ export default function RestaurantServices({
to={s?.href}
key={s?.id}
onClick={() => {
- localStorage.setItem("orderType", s?.id);
+ dispatch(updateOrderType(s?.id));
}}
style={{
width: "100%",
diff --git a/src/redux/api/others.ts b/src/redux/api/others.ts
index 51001f1..ff0823e 100644
--- a/src/redux/api/others.ts
+++ b/src/redux/api/others.ts
@@ -5,7 +5,7 @@ import {
ORDERS_URL,
PRODUCTS_AND_CATEGORIES_URL,
RESTAURANT_DETAILS_URL,
- TABLES_URL,
+ TABLES_URL
} from "utils/constants";
import { OrderDetails } from "pages/checkout/hooks/types";
diff --git a/src/utils/constants.ts b/src/utils/constants.ts
index 892a14d..cefa1d6 100644
--- a/src/utils/constants.ts
+++ b/src/utils/constants.ts
@@ -102,3 +102,4 @@ export const TABLES_URL = `${BASE_URL}restaurant/getTables`;
export const LOGIN_URL = `${API_BASE_URL}login`;
export const SEND_OTP_URL = `${API_BASE_URL}sendOtp`;
export const CONFIRM_OTP_URL = `${API_BASE_URL}confirmOtp`;
+export const PAYMENT_CONFIRMATION_URL = `https://menu.fascano.com/payment/confirmation`;