fix(web): исправить Base UI error #31 в App Switcher
Docker / build (push) Failing after 21s
Docker / build (push) Failing after 21s
DropdownMenuLabel перенесён внутрь DropdownMenuGroup; для внешних ссылок добавлен nativeButton={false}.
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -59,10 +59,10 @@ export function AppSwitcher() {
|
|||||||
align="start"
|
align="start"
|
||||||
sideOffset={4}
|
sideOffset={4}
|
||||||
>
|
>
|
||||||
<DropdownMenuLabel className="text-xs text-muted-foreground">
|
|
||||||
{config.menuLabel}
|
|
||||||
</DropdownMenuLabel>
|
|
||||||
<DropdownMenuGroup>
|
<DropdownMenuGroup>
|
||||||
|
<DropdownMenuLabel className="text-xs text-muted-foreground">
|
||||||
|
{config.menuLabel}
|
||||||
|
</DropdownMenuLabel>
|
||||||
{config.apps.map((app) => {
|
{config.apps.map((app) => {
|
||||||
const Icon = APP_SWITCHER_ICONS[app.icon]
|
const Icon = APP_SWITCHER_ICONS[app.icon]
|
||||||
const isCurrent = app.id === CURRENT_APP_ID
|
const isCurrent = app.id === CURRENT_APP_ID
|
||||||
@@ -78,7 +78,11 @@ export function AppSwitcher() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DropdownMenuItem key={app.id} render={<a href={app.url} />}>
|
<DropdownMenuItem
|
||||||
|
key={app.id}
|
||||||
|
nativeButton={false}
|
||||||
|
render={<a href={app.url} />}
|
||||||
|
>
|
||||||
<Icon />
|
<Icon />
|
||||||
{app.name}
|
{app.name}
|
||||||
{app.shortcut ? (
|
{app.shortcut ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user