mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-30 10:53:02 +01:00
Show user email address on settings menu for logged in account context
This commit is contained in:
parent
998d08f155
commit
020a956c89
1 changed files with 12 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue