File tree Expand file tree Collapse file tree 7 files changed +19
-21
lines changed Expand file tree Collapse file tree 7 files changed +19
-21
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const Cart = ({ stickyNav }) => {
17
17
return (
18
18
< >
19
19
< Link href = "/handlekurv" >
20
- < a
20
+ < span
21
21
className = "pl-4 mt-4 no-underline inline-block"
22
22
aria-label = "Handlekurv"
23
23
>
@@ -36,7 +36,7 @@ const Cart = ({ stickyNav }) => {
36
36
< circle cx = "10.5" cy = "18.5" r = "1.5" aria-label = "Handlekurv" />
37
37
< circle cx = "17.5" cy = "18.5" r = "1.5" aria-label = "Handlekurv" />
38
38
</ svg >
39
- </ a >
39
+ </ span >
40
40
</ Link >
41
41
42
42
{ productsCount && (
Original file line number Diff line number Diff line change @@ -49,8 +49,6 @@ const CartItem = ({
49
49
} ) ;
50
50
}
51
51
}
52
-
53
- refetch ( ) ;
54
52
} ;
55
53
return (
56
54
< tr className = "bg-gray-100" >
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ const CartItemsContainer = () => {
123
123
< h2 className = "text-lg" > Ingen varer i handlekurven</ h2 >
124
124
< button className = "px-4 py-2 m-4 font-bold uppercase bg-white border border-gray-400 border-solid rounded hover:bg-gray-400" >
125
125
< Link href = "/produkter" >
126
- < a > Legg til varer</ a >
126
+ < span > Legg til varer</ span >
127
127
</ Link >
128
128
</ button >
129
129
</ div >
Original file line number Diff line number Diff line change @@ -92,14 +92,14 @@ const Hamburger = () => {
92
92
className = "w-full p-4 border-t border-gray-400 border-solid rounded"
93
93
>
94
94
< Link href = { href } passHref >
95
- < a
95
+ < span
96
96
className = "inline-block px-4 py-2 no-underline hover:text-black hover:underline"
97
97
onClick = { ( ) => {
98
98
setisExpanded ( ( prevExpanded ) => ! prevExpanded ) ;
99
99
} }
100
100
>
101
101
{ title }
102
- </ a >
102
+ </ span >
103
103
</ Link >
104
104
</ li >
105
105
</ FadeLeftToRightItem >
Original file line number Diff line number Diff line change @@ -24,16 +24,16 @@ const Stickynav = () => (
24
24
< ul className = "items-center justify-between pt-4 text-base text-gray-700 md:flex md:pt-0" >
25
25
< li >
26
26
< Link href = "/produkter" >
27
- < a className = "inline-block py-2 pr-4 text-xl font-bold no-underline hover:underline" >
27
+ < span className = "inline-block py-2 pr-4 text-xl font-bold no-underline hover:underline" >
28
28
Produkter
29
- </ a >
29
+ </ span >
30
30
</ Link >
31
31
</ li >
32
32
< li >
33
33
< Link href = "/kategorier" >
34
- < a className = "inline-block py-2 pr-4 text-xl font-bold no-underline hover:underline" >
34
+ < span className = "inline-block py-2 pr-4 text-xl font-bold no-underline hover:underline" >
35
35
Kategorier
36
- </ a >
36
+ </ span >
37
37
</ Link >
38
38
</ li >
39
39
</ ul >
Original file line number Diff line number Diff line change @@ -24,23 +24,23 @@ const Navbar = () => {
24
24
< ul className = "items-center justify-between pt-4 text-base text-gray-700 md:flex md:pt-0" >
25
25
< li >
26
26
< Link href = "/produkter" >
27
- < a className = "inline-block py-2 pr-4 text-xl font-bold no-underline hover:underline" >
27
+ < span className = "inline-block py-2 pr-4 text-xl font-bold no-underline hover:underline" >
28
28
Produkter
29
- </ a >
29
+ </ span >
30
30
</ Link >
31
31
</ li >
32
32
< li >
33
33
< Link href = "/kategorier" >
34
- < a className = "inline-block py-2 pr-4 text-xl font-bold no-underline hover:underline" >
34
+ < span className = "inline-block py-2 pr-4 text-xl font-bold no-underline hover:underline" >
35
35
Kategorier
36
- </ a >
36
+ </ span >
37
37
</ Link >
38
38
</ li >
39
39
</ ul >
40
40
</ div >
41
41
< div className = "order-1 md:order-2" >
42
42
< Link href = "/" >
43
- < a className = "flex items-center text-xl font-bold tracking-wide text-gray-800 no-underline hover:no-underline " >
43
+ < span className = "flex items-center text-xl font-bold tracking-wide text-gray-800 no-underline hover:no-underline " >
44
44
< svg
45
45
className = "mr-2 text-gray-800 fill-current"
46
46
xmlns = "https://www.w3.org/2000/svg"
@@ -55,7 +55,7 @@ const Navbar = () => {
55
55
/>
56
56
</ svg >
57
57
NETTBUTIKK
58
- </ a >
58
+ </ span >
59
59
</ Link >
60
60
</ div >
61
61
< div
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ const IndexProducts = ({ products }) => {
46
46
slug
47
47
) } ?id=${ encodeURIComponent ( databaseId ) } `}
48
48
>
49
- < a >
49
+ < span >
50
50
{ image ? (
51
51
< img
52
52
id = "product-image"
@@ -64,21 +64,21 @@ const IndexProducts = ({ products }) => {
64
64
}
65
65
/>
66
66
) }
67
- </ a >
67
+ </ span >
68
68
</ Link >
69
69
70
70
< Link
71
71
href = { `/produkt/${ encodeURIComponent (
72
72
slug
73
73
) } ?id=${ encodeURIComponent ( databaseId ) } `}
74
74
>
75
- < a >
75
+ < span >
76
76
< div className = "flex justify-center pt-3" >
77
77
< p className = "font-bold text-center cursor-pointer" >
78
78
{ name }
79
79
</ p >
80
80
</ div >
81
- </ a >
81
+ </ span >
82
82
</ Link >
83
83
{ /* Display sale price when on sale */ }
84
84
{ onSale && (
You can’t perform that action at this time.
0 commit comments