change url param name to "subdomain"
This commit is contained in:
@@ -42,7 +42,7 @@ export default function CartMobileTabletLayout({
|
||||
}: CartMobileTabletLayoutProps) {
|
||||
const { t } = useTranslation();
|
||||
const { items, collectionMethod, orderType } = useAppSelector(selectCart);
|
||||
const { id } = useParams();
|
||||
const { subdomain } = useParams();
|
||||
const { isMobile, isTablet } = useBreakPoint();
|
||||
|
||||
const getResponsiveClass = () => (isTablet ? "tablet" : "mobile");
|
||||
@@ -93,7 +93,7 @@ export default function CartMobileTabletLayout({
|
||||
</div>
|
||||
|
||||
<Link
|
||||
to={`/${id}/menu?${
|
||||
to={`/${subdomain}/menu?${
|
||||
orderType ? `orderType=${orderType}` : ""
|
||||
}`}
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user