mirror of
https://github.com/vercel/commerce.git
synced 2025-06-20 06:01:21 +00:00
Temporary catch operation
This commit is contained in:
parent
396a708e23
commit
5630c073c6
@ -61,31 +61,29 @@ const ProductView: FC<ProductViewProps> = ({ product, relatedProducts }) => {
|
|||||||
<ProductSidebar product={product} className={s.sidebar} />
|
<ProductSidebar product={product} className={s.sidebar} />
|
||||||
</div>
|
</div>
|
||||||
<hr className="mt-7 border-accent-2" />
|
<hr className="mt-7 border-accent-2" />
|
||||||
{relatedProducts.length && (
|
<section className="py-12 px-6 mb-10">
|
||||||
<section className="py-12 px-6 mb-10">
|
<Text variant="sectionHeading">Related Products</Text>
|
||||||
<Text variant="sectionHeading">Related Products</Text>
|
<div className={s.relatedProductsGrid}>
|
||||||
<div className={s.relatedProductsGrid}>
|
{relatedProducts.map((p) => (
|
||||||
{relatedProducts.map((p) => (
|
<div
|
||||||
<div
|
key={p.path}
|
||||||
|
className="animated fadeIn bg-accent-0 border border-accent-2"
|
||||||
|
>
|
||||||
|
<ProductCard
|
||||||
|
noNameTag
|
||||||
|
product={p}
|
||||||
key={p.path}
|
key={p.path}
|
||||||
className="animated fadeIn bg-accent-0 border border-accent-2"
|
variant="simple"
|
||||||
>
|
className="animated fadeIn"
|
||||||
<ProductCard
|
imgProps={{
|
||||||
noNameTag
|
width: 300,
|
||||||
product={p}
|
height: 300,
|
||||||
key={p.path}
|
}}
|
||||||
variant="simple"
|
/>
|
||||||
className="animated fadeIn"
|
</div>
|
||||||
imgProps={{
|
))}
|
||||||
width: 300,
|
</div>
|
||||||
height: 300,
|
</section>
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
)}
|
|
||||||
</Container>
|
</Container>
|
||||||
<NextSeo
|
<NextSeo
|
||||||
title={product.name}
|
title={product.name}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user