change url param name to "subdomain"

This commit is contained in:
2025-10-31 13:56:20 +03:00
parent 42d0b2cacf
commit 3dddc78dda
24 changed files with 89 additions and 116 deletions

View File

@@ -5,19 +5,19 @@ import OfficeIcon from "components/Icons/address/OfficeIcon";
import ProHeader from "components/ProHeader/ProHeader";
import ProText from "components/ProText";
import { selectTheme } from "features/theme/themeSlice";
import { OrderType } from "pages/checkout/hooks/types.ts";
import { useTranslation } from "react-i18next";
import { Link, useParams } from "react-router-dom";
import { useAppSelector } from "redux/hooks";
import { colors, ProBlack2, ProGray1 } from "ThemeConstants";
import { AddressSummary } from "../checkout/components/AddressSummary";
import styles from "./address.module.css";
import { OrderType } from "pages/checkout/hooks/types.ts";
export default function AddressPage() {
const { t } = useTranslation();
const { themeName } = useAppSelector(selectTheme);
const [form] = Form.useForm();
const { id } = useParams();
const { subdomain } = useParams();
return (
<>
@@ -163,7 +163,7 @@ export default function AddressPage() {
}}
>
<Link
to={`/${id}/menu?orderType=${OrderType.Delivery}`}
to={`/${subdomain}/menu?orderType=${OrderType.Delivery}`}
style={{ width: "100%" }}
>
<Button