fix: 🐛
This commit is contained in:
parent
3f8a9e8efa
commit
2e1db46e4a
1 changed files with 2 additions and 3 deletions
|
|
@ -34,16 +34,15 @@ export function DesktopMenu({ menuActions, trigger }: DesktopMenuProps) {
|
||||||
</DropdownMenuSubTrigger>
|
</DropdownMenuSubTrigger>
|
||||||
<DropdownMenuSubContent className="max-h-screen overflow-y-auto">
|
<DropdownMenuSubContent className="max-h-screen overflow-y-auto">
|
||||||
{action.subMenu.map((subAction, subIndex) => (
|
{action.subMenu.map((subAction, subIndex) => (
|
||||||
<>
|
<div key={subIndex}>
|
||||||
{subAction.separator && subIndex > 0 && <DropdownMenuSeparator />}
|
{subAction.separator && subIndex > 0 && <DropdownMenuSeparator />}
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
key={subIndex}
|
|
||||||
onClick={subAction.onClick}
|
onClick={subAction.onClick}
|
||||||
className={cn('w-64', subAction.className)}
|
className={cn('w-64', subAction.className)}
|
||||||
>
|
>
|
||||||
{subAction.label}
|
{subAction.label}
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
</>
|
</div>
|
||||||
))}
|
))}
|
||||||
</DropdownMenuSubContent>
|
</DropdownMenuSubContent>
|
||||||
</DropdownMenuSub>
|
</DropdownMenuSub>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue