Skip to content

Commit

Permalink
User menu
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 21, 2023
1 parent 92b3704 commit deda847
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/dashboard/src/components/main-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function MainMenu() {
name: "Inbound",
icon: () => (
<div className="relative">
<span className="flex h-[6px] w-[6px] absolute top-[0px] -right-[23px]">
<span className="flex h-[6px] w-[6px] absolute -top-[3px] -right-[7px]">
<span className="animate-[ping_1s_ease-in-out_3] absolute inline-flex h-full w-full rounded-full bg-[#d98d00] opacity-75" />
<span className="relative inline-flex rounded-full h-[6px] w-[6px] bg-[#d98d00]" />
</span>
Expand Down
13 changes: 12 additions & 1 deletion apps/dashboard/src/components/user-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
DropdownMenuContent,
DropdownMenuGroup,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuShortcut,
DropdownMenuTrigger,
Expand All @@ -28,7 +29,17 @@ export async function UserMenu() {
</AvatarFallback>
</Avatar>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-56" sideOffset={10} align="end">
<DropdownMenuContent className="w-[240px]" sideOffset={10} align="end">
<DropdownMenuLabel>
<div className="flex justify-between items-center">
<span className="truncate">{userData.full_name}</span>
<div className="border py-1 px-3 rounded-full text-xs bg-foreground text-background">
Beta
</div>
</div>
</DropdownMenuLabel>
<DropdownMenuSeparator />

<DropdownMenuGroup>
<Link href="/profile">
<DropdownMenuItem>
Expand Down

0 comments on commit deda847

Please sign in to comment.