change url param name to "subdomain"
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user