This commit is contained in:
2025-10-18 16:32:22 +03:00
parent 9d4621d0a4
commit a5418b3724
5 changed files with 33 additions and 29 deletions

View File

@@ -8,7 +8,7 @@ import ProTitle from "components/ProTitle";
import { useScrollHandler } from "contexts/ScrollHandlerContext";
import useBreakPoint from "hooks/useBreakPoint";
import { useTranslation } from "react-i18next";
import { useParams, useSearchParams } from "react-router-dom";
import { useParams } from "react-router-dom";
import {
useGetMenuQuery,
useGetRestaurantDetailsQuery,
@@ -28,8 +28,6 @@ import styles from "./menu.module.css";
function MenuPage() {
const { id } = useParams();
const [searchParams] = useSearchParams();
const orderType = searchParams.get("orderType");
const { isRTL } = useAppSelector((state) => state.locale);
const { t } = useTranslation();
const { data: restaurantDetails, isLoading: isLoadingRestaurant } =
@@ -45,7 +43,6 @@ function MenuPage() {
);
const { categoryRefs } = useScrollHandler();
const { isMobile, isTablet, isDesktop } = useBreakPoint();
const isLoading = isLoadingRestaurant || isLoadingMenu;
return (
@@ -53,7 +50,6 @@ function MenuPage() {
<LocalStorageHandler
restaurantID={restaurant?.id || ""}
restaurantName={restaurant?.subdomain || ""}
orderType={orderType || ""}
/>
{isLoading ? (