change url param name to "subdomain"
This commit is contained in:
@@ -13,7 +13,7 @@ export function MenuFooter() {
|
||||
const { themeName } = useAppSelector((state) => state.theme);
|
||||
const { isMobile, isTablet } = useBreakPoint();
|
||||
const { t } = useTranslation();
|
||||
const { id } = useParams();
|
||||
const { subdomain } = useParams();
|
||||
|
||||
const totalItems = items.reduce((sum, item) => sum + item.quantity, 0);
|
||||
|
||||
@@ -37,7 +37,7 @@ export function MenuFooter() {
|
||||
}}
|
||||
>
|
||||
<Link
|
||||
to={`/${id}/cart`}
|
||||
to={`/${subdomain}/cart`}
|
||||
style={{
|
||||
width: "100%",
|
||||
padding: "0 16px",
|
||||
|
||||
Reference in New Issue
Block a user