change url param name to "subdomain"
This commit is contained in:
@@ -11,7 +11,7 @@ import styles from "./LoyaltyCard.module.css";
|
||||
|
||||
const LoyaltyCard = () => {
|
||||
const { t } = useTranslation();
|
||||
const { id } = useParams();
|
||||
const { subdomain } = useParams();
|
||||
const { data: restaurant } = useGetRestaurantDetailsQuery("595");
|
||||
const token = localStorage.getItem(ACCESS_TOKEN);
|
||||
const isHasLoyaltyGift =
|
||||
@@ -68,7 +68,7 @@ const LoyaltyCard = () => {
|
||||
{!token && (
|
||||
<div style={{ paddingTop: 4 }}>
|
||||
<Link
|
||||
to={`/${id}/login`}
|
||||
to={`/${subdomain}/login`}
|
||||
style={{
|
||||
color: colors.primary,
|
||||
textDecoration: "underline",
|
||||
|
||||
Reference in New Issue
Block a user