feat: implement profile popover

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe
2024-04-16 14:56:05 +07:00
parent 409f6b3bda
commit 5c59c86d55
8 changed files with 90 additions and 5 deletions

View File

@@ -1,6 +1,8 @@
import Cart from 'components/cart';
import OpenCart from 'components/cart/open-cart';
import LogoSquare from 'components/logo-square';
import Profile from 'components/profile';
import OpenProfile from 'components/profile/open-profile';
import { getMenu } from 'lib/shopify';
import { Menu } from 'lib/shopify/types';
import Link from 'next/link';
@@ -37,7 +39,10 @@ export default async function Navbar() {
<Search />
</Suspense>
</div>
<div className="flex justify-end md:w-1/3">
<div className="flex justify-end gap-3 md:w-1/3">
<Suspense fallback={<OpenProfile />}>
<Profile />
</Suspense>
<Suspense fallback={<OpenCart />}>
<Cart />
</Suspense>