File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 1- import { useState , useContext } from 'react' ;
1+ import { useContext } from 'react' ;
22
33import 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 =
You can’t perform that action at this time.
0 commit comments