Separate cart-icon into open-cart and close-cart (#1071)

This commit is contained in:
Stephanie Dietz
2023-07-13 15:24:56 -05:00
committed by GitHub
parent 3dd7f11bf0
commit bc65a3c7f9
4 changed files with 22 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
import Cart from 'components/cart';
import CartIcon from 'components/icons/cart';
import OpenCart from 'components/cart/open-cart';
import LogoSquare from 'components/logo-square';
import { getMenu } from 'lib/shopify';
import { Menu } from 'lib/shopify/types';
@@ -48,7 +48,7 @@ export default async function Navbar() {
<Search />
</div>
<div className="flex justify-end md:w-1/3">
<Suspense fallback={<CartIcon className="h-6" />}>
<Suspense fallback={<OpenCart className="h-6" />}>
<Cart />
</Suspense>
</div>