Skip to content

Commit 15b172f

Browse files
committed
Remove unused code
1 parent ea7b11d commit 15b172f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

components/Cart/AddToCartButton.component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const AddToCartButton = (props) => {
8686
<button
8787
onClick={handleAddToCartClick}
8888
className={`px-4 py-2 font-bold bg-white border border-gray-400 border-solid rounded hover:bg-gray-400 ${
89-
addToCartLoading && `animate__animated animate__fadeOut`} ${showAddToCart && `animate__animated animate__fadeIn` }`}
89+
addToCartLoading && `animate__animated animate__fadeOutUp`} ${showAddToCart && `animate__animated animate__fadeInDown` }`}
9090
>
9191
KJØP
9292
</button>

components/Cart/Cart.component.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useState, useContext } from 'react';
1+
import { useContext } from 'react';
22

33
import Link from 'next/link';
44

@@ -9,8 +9,7 @@ import { AppContext } from 'utils/context/AppContext';
99
* Currently only displays a sample cart.
1010
* Displays amount of items in cart.
1111
*/
12-
const Cart = () => {
13-
const [isExpanded, setisExpanded] = useState(false);
12+
const Cart = () => {
1413
const [cart, setCart] = useContext(AppContext);
1514

1615
const productsCount =

0 commit comments

Comments
 (0)