diff --git a/components/cart/CartItem/CartItem.tsx b/components/cart/CartItem/CartItem.tsx index 4453e0c08..eabeedef8 100644 --- a/components/cart/CartItem/CartItem.tsx +++ b/components/cart/CartItem/CartItem.tsx @@ -84,7 +84,7 @@ const CartItem = ({ >
- + closeSidebarIfPresent()} className={s.productImage} @@ -97,7 +97,7 @@ const CartItem = ({
- + closeSidebarIfPresent()} diff --git a/components/product/ProductCard/ProductCard.tsx b/components/product/ProductCard/ProductCard.tsx index 95f2f3f07..3e5c58887 100644 --- a/components/product/ProductCard/ProductCard.tsx +++ b/components/product/ProductCard/ProductCard.tsx @@ -38,7 +38,7 @@ const ProductCard: FC = ({ ) return ( - + {variant === 'slim' && ( <> diff --git a/pages/product/[slug].tsx b/pages/products/[slug].tsx similarity index 93% rename from pages/product/[slug].tsx rename to pages/products/[slug].tsx index bb1ecbee3..87a340664 100644 --- a/pages/product/[slug].tsx +++ b/pages/products/[slug].tsx @@ -56,11 +56,11 @@ export async function getStaticPaths({ locales }: GetStaticPathsContext) { ? locales.reduce((arr, locale) => { // Add a product path for every locale products.forEach((product: any) => { - arr.push(`/${locale}/product${product.path}`) + arr.push(`/${locale}/products${product.path}`) }) return arr }, []) - : products.map((product: any) => `/product${product.path}`), + : products.map((product: any) => `/products${product.path}`), fallback: 'blocking', } }