fix(ST-507): wrap UserMenu role label in DropdownMenuGroup to satisfy base-ui
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0dc907b75c
commit
338a5edf11
1 changed files with 9 additions and 6 deletions
|
|
@ -8,6 +8,7 @@ import { Badge } from '@/components/ui/badge'
|
|||
import {
|
||||
DropdownMenu,
|
||||
DropdownMenuContent,
|
||||
DropdownMenuGroup,
|
||||
DropdownMenuItem,
|
||||
DropdownMenuLabel,
|
||||
DropdownMenuSeparator,
|
||||
|
|
@ -63,12 +64,14 @@ export function UserMenu({ userId, username, email, roles }: UserMenuProps) {
|
|||
{roleLabels.length > 0 && (
|
||||
<>
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuLabel className="text-xs uppercase tracking-wide text-muted-foreground">
|
||||
Rollen
|
||||
</DropdownMenuLabel>
|
||||
<div className="px-2 pb-2 text-sm text-foreground">
|
||||
{roleLabels.join(', ')}
|
||||
</div>
|
||||
<DropdownMenuGroup>
|
||||
<DropdownMenuLabel className="text-xs uppercase tracking-wide text-muted-foreground">
|
||||
Rollen
|
||||
</DropdownMenuLabel>
|
||||
<div className="px-2 pb-2 text-sm text-foreground">
|
||||
{roleLabels.join(', ')}
|
||||
</div>
|
||||
</DropdownMenuGroup>
|
||||
</>
|
||||
)}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue