fix(web): убрать MenuGroupLabel из App Switcher
Build, Test, and Push CFDM Docker Image / test (push) Successful in 3m35s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Successful in 2m20s
Build, Test, and Push CFDM Docker Image / update-wiki (push) Successful in 6s
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped

Заголовок меню — обычный div вместо DropdownMenuLabel, чтобы исключить Base UI error #31 в production.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-06-30 15:45:45 +07:00
co-authored by Cursor
parent e47395544e
commit cc829a5a8e
+2 -6
View File
@@ -1,9 +1,7 @@
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuGroup,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuShortcut,
DropdownMenuTrigger,
} from '@cfdm/ui/components/dropdown-menu'
@@ -59,10 +57,9 @@ export function AppSwitcher() {
align="start"
sideOffset={4}
>
<DropdownMenuGroup>
<DropdownMenuLabel className="text-xs text-muted-foreground">
<div className="px-2 py-1.5 text-xs text-muted-foreground">
{config.menuLabel}
</DropdownMenuLabel>
</div>
{config.apps.map((app) => {
const Icon = APP_SWITCHER_ICONS[app.icon]
const isCurrent = app.id === CURRENT_APP_ID
@@ -91,7 +88,6 @@ export function AppSwitcher() {
</DropdownMenuItem>
)
})}
</DropdownMenuGroup>
</DropdownMenuContent>
</DropdownMenu>
</SidebarMenuItem>