Skip to content

Commit c7375f3

Browse files
committed
Update DisplayProducts.component.tsx
1 parent a6d0f08 commit c7375f3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/components/Product/DisplayProducts.component.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ interface IDisplayProductsProps {
4848

4949
const DisplayProducts = ({ products }: IDisplayProductsProps) => (
5050
<section className="container mx-auto bg-white">
51-
<div id="product-container" className="flex flex-wrap items-center mb-[120px] md:mb-0">
51+
<div
52+
id="product-container"
53+
className="flex flex-wrap items-center mb-[120px] md:mb-0"
54+
>
5255
{products ? (
5356
products.map(
5457
({
@@ -103,7 +106,6 @@ const DisplayProducts = ({ products }: IDisplayProductsProps) => (
103106
)}
104107
</span>
105108
</Link>
106-
107109
<Link
108110
href={`/produkt/${encodeURIComponent(
109111
slug,
@@ -132,7 +134,9 @@ const DisplayProducts = ({ products }: IDisplayProductsProps) => (
132134
)}
133135
{/* Display regular price when not on sale */}
134136
{!onSale && (
135-
<p className="pt-1 text-center text-gray-900 text-xl">{price}</p>
137+
<p className="pt-1 text-center text-gray-900 text-xl">
138+
{price}
139+
</p>
136140
)}
137141
</div>
138142
);

0 commit comments

Comments
 (0)