@@ -10,13 +10,13 @@ import {
1010 KeyRound ,
1111 LogOut ,
1212 Settings ,
13+ Settings2 ,
1314 Shield ,
1415 UserPlus ,
1516 Zap ,
1617} from "lucide-react" ;
1718
1819import { useOpenQuickStartDialog } from "@/components/pages-shared/onboarding/QuickstartDialog/QuickstartDialog" ;
19- import { ListAction } from "@/components/ui/list-action" ;
2020import TooltipWrapper from "@/components/shared/TooltipWrapper/TooltipWrapper" ;
2121import { Avatar , AvatarFallback , AvatarImage } from "@/components/ui/avatar" ;
2222import { Button } from "@/components/ui/button" ;
@@ -302,29 +302,34 @@ const UserMenu = () => {
302302 </ DropdownMenuSubTrigger >
303303 < DropdownMenuPortal >
304304 < DropdownMenuSubContent className = "w-60" >
305- < DropdownMenuItem
306- className = "cursor-pointer"
307- onClick = { ( ) => {
308- copy ( user . apiKeys [ 0 ] ) ;
309- toast ( { description : "Successfully copied API Key" } ) ;
310- } }
311- >
312- < span className = "truncate" >
305+ < div className = "flex h-10 items-center justify-between gap-2 px-4" >
306+ < span className = "comet-body-s truncate text-foreground" >
313307 { maskAPIKey ( user . apiKeys [ 0 ] ) }
314308 </ span >
315- < Copy className = "ml-2 size-3 shrink-0" />
316- </ DropdownMenuItem >
317- < DropdownMenuSeparator className = "my-1" />
318- < ListAction asChild >
319- < a
320- href = { buildUrl (
321- "account-settings/apiKeys" ,
322- workspaceName ,
323- ) }
324- >
325- Manage API keys
326- </ a >
327- </ ListAction >
309+ < div className = "flex shrink-0 items-center gap-1 text-light-slate" >
310+ < button
311+ className = "cursor-pointer rounded p-0.5 hover:text-foreground"
312+ onClick = { ( ) => {
313+ copy ( user . apiKeys [ 0 ] ) ;
314+ toast ( {
315+ description : "Successfully copied API Key" ,
316+ } ) ;
317+ } }
318+ >
319+ < Copy className = "size-3.5" />
320+ </ button >
321+ < div className = "mx-0.5 h-3.5 w-px bg-border" />
322+ < a
323+ className = "cursor-pointer rounded p-0.5 hover:text-foreground"
324+ href = { buildUrl (
325+ "account-settings/apiKeys" ,
326+ workspaceName ,
327+ ) }
328+ >
329+ < Settings2 className = "size-3.5" />
330+ </ a >
331+ </ div >
332+ </ div >
328333 </ DropdownMenuSubContent >
329334 </ DropdownMenuPortal >
330335 </ DropdownMenuSub >
0 commit comments