Skip to content

Commit 3a5b8cf

Browse files
committed
Fix bugs
1 parent 224a375 commit 3a5b8cf

File tree

7 files changed

+19
-21
lines changed

7 files changed

+19
-21
lines changed

components/Cart/Cart.component.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Cart = ({ stickyNav }) => {
1717
return (
1818
<>
1919
<Link href="/handlekurv">
20-
<a
20+
<span
2121
className="pl-4 mt-4 no-underline inline-block"
2222
aria-label="Handlekurv"
2323
>
@@ -36,7 +36,7 @@ const Cart = ({ stickyNav }) => {
3636
<circle cx="10.5" cy="18.5" r="1.5" aria-label="Handlekurv" />
3737
<circle cx="17.5" cy="18.5" r="1.5" aria-label="Handlekurv" />
3838
</svg>
39-
</a>
39+
</span>
4040
</Link>
4141

4242
{productsCount && (

components/Cart/CartPage/CartItem.component.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ const CartItem = ({
4949
});
5050
}
5151
}
52-
53-
refetch();
5452
};
5553
return (
5654
<tr className="bg-gray-100">

components/Cart/CartPage/CartItemsContainer.component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const CartItemsContainer = () => {
123123
<h2 className="text-lg">Ingen varer i handlekurven</h2>
124124
<button className="px-4 py-2 m-4 font-bold uppercase bg-white border border-gray-400 border-solid rounded hover:bg-gray-400">
125125
<Link href="/produkter">
126-
<a>Legg til varer</a>
126+
<span>Legg til varer</span>
127127
</Link>
128128
</button>
129129
</div>

components/Footer/Hamburger.component.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ const Hamburger = () => {
9292
className="w-full p-4 border-t border-gray-400 border-solid rounded"
9393
>
9494
<Link href={href} passHref>
95-
<a
95+
<span
9696
className="inline-block px-4 py-2 no-underline hover:text-black hover:underline"
9797
onClick={() => {
9898
setisExpanded((prevExpanded) => !prevExpanded);
9999
}}
100100
>
101101
{title}
102-
</a>
102+
</span>
103103
</Link>
104104
</li>
105105
</FadeLeftToRightItem>

components/Footer/Stickynav.component.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ const Stickynav = () => (
2424
<ul className="items-center justify-between pt-4 text-base text-gray-700 md:flex md:pt-0">
2525
<li>
2626
<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">
2828
Produkter
29-
</a>
29+
</span>
3030
</Link>
3131
</li>
3232
<li>
3333
<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">
3535
Kategorier
36-
</a>
36+
</span>
3737
</Link>
3838
</li>
3939
</ul>

components/Header/Navbar.component.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@ const Navbar = () => {
2424
<ul className="items-center justify-between pt-4 text-base text-gray-700 md:flex md:pt-0">
2525
<li>
2626
<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">
2828
Produkter
29-
</a>
29+
</span>
3030
</Link>
3131
</li>
3232
<li>
3333
<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">
3535
Kategorier
36-
</a>
36+
</span>
3737
</Link>
3838
</li>
3939
</ul>
4040
</div>
4141
<div className="order-1 md:order-2">
4242
<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 ">
4444
<svg
4545
className="mr-2 text-gray-800 fill-current"
4646
xmlns="https://www.w3.org/2000/svg"
@@ -55,7 +55,7 @@ const Navbar = () => {
5555
/>
5656
</svg>
5757
NETTBUTIKK
58-
</a>
58+
</span>
5959
</Link>
6060
</div>
6161
<div

components/Product/IndexProducts.component.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const IndexProducts = ({ products }) => {
4646
slug
4747
)}?id=${encodeURIComponent(databaseId)}`}
4848
>
49-
<a>
49+
<span>
5050
{image ? (
5151
<img
5252
id="product-image"
@@ -64,21 +64,21 @@ const IndexProducts = ({ products }) => {
6464
}
6565
/>
6666
)}
67-
</a>
67+
</span>
6868
</Link>
6969

7070
<Link
7171
href={`/produkt/${encodeURIComponent(
7272
slug
7373
)}?id=${encodeURIComponent(databaseId)}`}
7474
>
75-
<a>
75+
<span>
7676
<div className="flex justify-center pt-3">
7777
<p className="font-bold text-center cursor-pointer">
7878
{name}
7979
</p>
8080
</div>
81-
</a>
81+
</span>
8282
</Link>
8383
{/* Display sale price when on sale */}
8484
{onSale && (

0 commit comments

Comments
 (0)