Update ProductView.tsx

This commit is contained in:
cond0r 2023-01-26 10:39:35 +02:00
parent de2e92cf3e
commit 9ae544b5b9

View File

@ -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>