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

@@ -24,7 +24,7 @@ export function SearchMenu({ products }: MenuListProps) {
const navigate = useNavigate();
const { t } = useTranslation();
const { themeName } = useAppSelector((state) => state.theme);
const { id } = useParams();
const { subdomain } = useParams();
// Show error state if data exists but has no products
if (products && (!products || products.length === 0)) {
@@ -48,7 +48,7 @@ export function SearchMenu({ products }: MenuListProps) {
className={styles.productLink + " product-link-search"}
onClick={() => {
localStorage.setItem("product", JSON.stringify(item));
navigate(`/${id}/product/${item.id}`);
navigate(`/${subdomain}/product/${item.id}`);
}}
>
<Card