mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 06:56:59 +00:00
Update ProductView.tsx
This commit is contained in:
parent
de2e92cf3e
commit
9ae544b5b9
@ -69,10 +69,7 @@ const ProductView: FC<ProductViewProps> = ({ product, relatedProducts }) => {
|
|||||||
<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="bg-accent-0 border border-accent-2">
|
||||||
key={p.path}
|
|
||||||
className="animated fadeIn bg-accent-0 border border-accent-2"
|
|
||||||
>
|
|
||||||
<ProductCard
|
<ProductCard
|
||||||
noNameTag
|
noNameTag
|
||||||
product={p}
|
product={p}
|
||||||
@ -81,6 +78,7 @@ const ProductView: FC<ProductViewProps> = ({ product, relatedProducts }) => {
|
|||||||
className="animated fadeIn"
|
className="animated fadeIn"
|
||||||
imgProps={{
|
imgProps={{
|
||||||
alt: p.name,
|
alt: p.name,
|
||||||
|
className: 'w-full h-auto',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user