Fix JSX indentation in Similar Products section
This commit is contained in:
@@ -417,13 +417,14 @@ export default function ProductDetail({ product, relatedProducts, locale = "SR"
|
|||||||
<div className="flex justify-center">
|
<div className="flex justify-center">
|
||||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 lg:gap-8">
|
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 lg:gap-8">
|
||||||
{relatedProducts.filter(p => p && p.id).slice(0, 4).map((relatedProduct, index) => (
|
{relatedProducts.filter(p => p && p.id).slice(0, 4).map((relatedProduct, index) => (
|
||||||
<ProductCard
|
<ProductCard
|
||||||
key={relatedProduct.id}
|
key={relatedProduct.id}
|
||||||
product={relatedProduct}
|
product={relatedProduct}
|
||||||
index={index}
|
index={index}
|
||||||
locale={locale}
|
locale={locale}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user