4
0
forked from crowetic/commerce
This commit is contained in:
Lee Robinson 2023-09-02 11:10:15 -05:00
parent 18167d22f3
commit eeebd31b6c

View File

@ -4,7 +4,6 @@ import LogoSquare from 'components/logo-square';
import { getMenu } from 'lib/shopify'; import { getMenu } from 'lib/shopify';
import { Menu } from 'lib/shopify/types'; import { Menu } from 'lib/shopify/types';
import Link from 'next/link'; import Link from 'next/link';
import { Suspense } from 'react';
import MobileMenu from './mobile-menu'; import MobileMenu from './mobile-menu';
import Search from './search'; import Search from './search';
const { SITE_NAME } = process.env; const { SITE_NAME } = process.env;
@ -44,9 +43,9 @@ export default async function Navbar() {
<Search /> <Search />
</div> </div>
<div className="flex justify-end md:w-1/3"> <div className="flex justify-end md:w-1/3">
<Suspense fallback={<OpenCart />}> <Dynamic fallback={<OpenCart />} error="There was an error opening the cart.">
<Cart /> <Cart />
</Suspense> </Dynamic>
</div> </div>
</div> </div>
</nav> </nav>