Mandant switcher

This commit is contained in:
2025-08-20 16:08:05 +02:00
parent eb66f4f394
commit d070aaf549
6 changed files with 45 additions and 43 deletions

View File

@ -4,7 +4,7 @@ import {
MoreHorizontal,
StarOff,
Trash2,
} from "lucide-react"
} from 'lucide-react'
import {
DropdownMenu,
@ -12,7 +12,7 @@ import {
DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu"
} from '@/components/ui/dropdown-menu'
import {
SidebarGroup,
SidebarGroupLabel,
@ -21,16 +21,16 @@ import {
SidebarMenuButton,
SidebarMenuItem,
useSidebar,
} from "@/components/ui/sidebar"
} from '@/components/ui/sidebar'
export function NavFavorites({
favorites,
}: {
favorites: {
favorites: Array<{
name: string
url: string
emoji: string
}[]
}>
}) {
const { isMobile } = useSidebar()
@ -55,8 +55,8 @@ export function NavFavorites({
</DropdownMenuTrigger>
<DropdownMenuContent
className="w-56 rounded-lg"
side={isMobile ? "bottom" : "right"}
align={isMobile ? "end" : "start"}
side={isMobile ? 'bottom' : 'right'}
align={isMobile ? 'end' : 'start'}
>
<DropdownMenuItem>
<StarOff className="text-muted-foreground" />