Skip to content

Commit 67abda1

Browse files
committed
Prettier
1 parent f63eddf commit 67abda1

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

components/Product/IndexProducts.component.jsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,8 @@ import { v4 as uuidv4 } from 'uuid';
99
const IndexProducts = ({ products }) => {
1010
return (
1111
<>
12-
1312
<section className="container mx-auto bg-white">
14-
15-
<div
16-
id="product-container"
17-
className="flex flex-wrap items-center"
18-
>
19-
20-
13+
<div id="product-container" className="flex flex-wrap items-center">
2114
{products ? (
2215
products.map(
2316
({
@@ -41,7 +34,7 @@ const IndexProducts = ({ products }) => {
4134
<a>
4235
<img
4336
id="product-image"
44-
className="transition duration-500 ease-in-out transform hover:grow hover:shadow-lg hover:scale-105"
37+
className="transition duration-500 ease-in-out transform hover:grow hover:shadow-lg hover:scale-105"
4538
//className="w-64 transition duration-500 ease-in-out transform hover:grow hover:shadow-lg hover:scale-105"
4639
src={image.sourceUrl}
4740
/>

pages/produkter.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ const Produkter = ({ products }) => {
1717

1818
return (
1919
<>
20-
<PageTitle title="Produkter" marginleft="true"/>
21-
22-
{
23-
products && <IndexProducts products={products} />
24-
}
20+
<PageTitle title="Produkter" marginleft="true" />
21+
22+
{products && <IndexProducts products={products} />}
2523

2624
{!products && !error && (
2725
<div className="h-64 mt-8 text-2xl text-center">

0 commit comments

Comments
 (0)