diff --git a/ui/admin/app/components/user/UserMenu.tsx b/ui/admin/app/components/user/UserMenu.tsx index 932a18a0..c6c8e67e 100644 --- a/ui/admin/app/components/user/UserMenu.tsx +++ b/ui/admin/app/components/user/UserMenu.tsx @@ -7,12 +7,14 @@ import { cn } from "~/lib/utils"; import { useAuth } from "~/components/auth/AuthContext"; import { Avatar, AvatarFallback, AvatarImage } from "~/components/ui/avatar"; -import { Button } from "~/components/ui/button"; +import { ClickableDiv } from "~/components/ui/clickable-div"; import { - Popover, - PopoverContent, - PopoverTrigger, -} from "~/components/ui/popover"; + DropdownMenu, + DropdownMenuContent, + DropdownMenuGroup, + DropdownMenuItem, + DropdownMenuTrigger, +} from "~/components/ui/dropdown-menu"; interface UserMenuProps { className?: string; @@ -30,14 +32,9 @@ export const UserMenu: React.FC = ({ } return ( - - -
+ + + @@ -54,18 +51,20 @@ export const UserMenu: React.FC = ({

)} - -
- - - -
+ + + + + { + window.location.href = + "/oauth2/sign_out?rd=/admin/"; + }} + > + Sign Out + + + + ); };