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

@@ -7,14 +7,14 @@ import OrdersList from "./OrdersList";
export default function OrdersPage() {
const { t } = useTranslation();
const { id } = useParams();
const { subdomain } = useParams();
return (
<>
<ProHeader>{t("orders.title")}</ProHeader>
<OrdersList />
<Row className={styles.row}>
<Link to={`/${id}/menu`} style={{ width: "100%" }}>
<Link to={`/${subdomain}/menu`} style={{ width: "100%" }}>
<Button type="primary" shape="round" className={styles.button}>
{t("orders.browseMenu")}
</Button>