Skip to content

Commit 987e8aa

Browse files
committed
Prettier
1 parent 3d05b0b commit 987e8aa

File tree

2 files changed

+11
-17
lines changed

2 files changed

+11
-17
lines changed

components/Cart/CartPage/CartItem.component.jsx

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useState } from 'react';
22

3-
import SVGX from "components/SVG/SVGX.component"
4-
3+
import SVGX from 'components/SVG/SVGX.component';
54

65
const CartItem = ({
76
item,
@@ -16,16 +15,11 @@ const CartItem = ({
1615
<tr className="bg-gray-100">
1716
<td className="px-4 py-2 border">
1817
<span>
19-
<SVGX
20-
onClick={() => {
21-
//setisExpanded(!isExpanded);
22-
}}
18+
<SVGX
19+
onClick={() => {
20+
//setisExpanded(!isExpanded);
21+
}}
2322
/>
24-
25-
26-
27-
28-
2923
</span>
3024
</td>
3125
<td className="px-4 py-2 border">
@@ -44,18 +38,16 @@ const CartItem = ({
4438
</td>
4539

4640
<td className="px-4 py-2 border">
47-
<input type="number" min="1" value={productCount} />
41+
<input
42+
className="w-6"
43+
type="number" min="1" value={productCount} />
4844
</td>
4945

5046
<td className="px-4 py-2 border">
5147
{'string' !== typeof item.totalPrice
5248
? item.totalPrice.toFixed(2)
5349
: item.totalPrice}
5450
</td>
55-
56-
57-
58-
5951
</tr>
6052
);
6153
};

components/Cart/CartPage/CartItemsContainer.component.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ const CartItemsContainer = () => {
5252
<section className="py-8 bg-white">
5353
<div className="container flex flex-wrap items-center mx-auto">
5454
{cart ? (
55-
<div className="p-6 mx-auto mt-5">
55+
<div
56+
className="p-6 mx-auto mt-5"
57+
>
5658
<PageTitle title="Handlekurv" />
5759
<table className="table-auto">
5860
<thead>

0 commit comments

Comments
 (0)