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