update restaurant details source & add loyalty icon

This commit is contained in:
2025-10-20 21:42:48 +03:00
parent c7f5620f5a
commit 6a6f92aefc
15 changed files with 305 additions and 205 deletions

View File

@@ -4,16 +4,16 @@ import ProText from "components/ProText";
import { selectCartItems } from "features/order/orderSlice";
import useBreakPoint from "hooks/useBreakPoint";
import { useTranslation } from "react-i18next";
import { Link } from "react-router-dom";
import { Link, useParams } from "react-router-dom";
import { useAppSelector } from "redux/hooks";
import { colors, ProBlack2 } from "ThemeConstants";
export function MenuFooter() {
const items = useAppSelector(selectCartItems);
const restaurantName = localStorage.getItem("restaurantName");
const { themeName } = useAppSelector((state) => state.theme);
const { isMobile, isTablet } = useBreakPoint();
const { t } = useTranslation();
const { id } = useParams();
const totalItems = items.reduce((sum, item) => sum + item.quantity, 0);
@@ -37,7 +37,7 @@ export function MenuFooter() {
}}
>
<Link
to={`/${restaurantName}/cart`}
to={`/${id}/cart`}
style={{
width: "100%",
padding: "0 16px",