update restaurant details source & add loyalty icon
This commit is contained in:
@@ -11,7 +11,7 @@ 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 { Link, useParams } from "react-router-dom";
|
||||
import { useAppDispatch, useAppSelector } from "redux/hooks";
|
||||
import styles from "./restaurant.module.css";
|
||||
|
||||
@@ -37,9 +37,9 @@ export default function RestaurantServices({
|
||||
}: RestaurantServicesProps) {
|
||||
const { t } = useTranslation();
|
||||
const { isRTL } = useAppSelector((state) => state.locale);
|
||||
const id = localStorage.getItem("restaurantName");
|
||||
const { id } = useParams();
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
|
||||
const services = [
|
||||
...((dineIn && [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user