Show user email address on settings menu for logged in account context

This commit is contained in:
Debanjum Singh Solanky 2024-08-05 19:18:04 +05:30
parent 998d08f155
commit 020a956c89

View file

@ -99,6 +99,12 @@ export default function NavMenu() {
)}
</DropdownMenuTrigger>
<DropdownMenuContent className="gap-2">
<DropdownMenuItem className="w-full">
<div className="flex flex-rows">
<p className="font-semibold">{userData?.email}</p>
</div>
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem
onClick={() => setDarkMode(!darkMode)}
className="w-full cursor-pointer"
@ -200,6 +206,12 @@ export default function NavMenu() {
)}
</MenubarTrigger>
<MenubarContent align="end" className="rounded-xl gap-2">
<MenubarItem className="w-full">
<div className="flex flex-rows">
<p className="font-semibold">{userData?.email}</p>
</div>
</MenubarItem>
<MenubarSeparator className="dark:bg-white height-[2px] bg-black" />
<MenubarItem
onClick={() => setDarkMode(!darkMode)}
className="w-full hover:cursor-pointer"