File tree Expand file tree Collapse file tree 2 files changed +11
-17
lines changed Expand file tree Collapse file tree 2 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 1
1
import { useState } from 'react' ;
2
2
3
- import SVGX from "components/SVG/SVGX.component"
4
-
3
+ import SVGX from 'components/SVG/SVGX.component' ;
5
4
6
5
const CartItem = ( {
7
6
item,
@@ -16,16 +15,11 @@ const CartItem = ({
16
15
< tr className = "bg-gray-100" >
17
16
< td className = "px-4 py-2 border" >
18
17
< span >
19
- < SVGX
20
- onClick = { ( ) => {
21
- //setisExpanded(!isExpanded);
22
- } }
18
+ < SVGX
19
+ onClick = { ( ) => {
20
+ //setisExpanded(!isExpanded);
21
+ } }
23
22
/>
24
-
25
-
26
-
27
-
28
-
29
23
</ span >
30
24
</ td >
31
25
< td className = "px-4 py-2 border" >
@@ -44,18 +38,16 @@ const CartItem = ({
44
38
</ td >
45
39
46
40
< 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 } />
48
44
</ td >
49
45
50
46
< td className = "px-4 py-2 border" >
51
47
{ 'string' !== typeof item . totalPrice
52
48
? item . totalPrice . toFixed ( 2 )
53
49
: item . totalPrice }
54
50
</ td >
55
-
56
-
57
-
58
-
59
51
</ tr >
60
52
) ;
61
53
} ;
Original file line number Diff line number Diff line change @@ -52,7 +52,9 @@ const CartItemsContainer = () => {
52
52
< section className = "py-8 bg-white" >
53
53
< div className = "container flex flex-wrap items-center mx-auto" >
54
54
{ cart ? (
55
- < div className = "p-6 mx-auto mt-5" >
55
+ < div
56
+ className = "p-6 mx-auto mt-5"
57
+ >
56
58
< PageTitle title = "Handlekurv" />
57
59
< table className = "table-auto" >
58
60
< thead >
You can’t perform that action at this time.
0 commit comments