NORY-15: fix app sidebar opening on navigation

This commit is contained in:
Markus Thielker 2024-12-05 18:08:53 +01:00
parent 176bd9db18
commit 0ac5c67dfe
No known key found for this signature in database

View file

@ -21,6 +21,7 @@ import {
} from '@/components/ui/dropdown-menu';
import { useTheme } from 'next-themes';
import { LogoutLink } from '@/ory';
import Link from 'next/link';
export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
@ -54,10 +55,10 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
{items.map((item) => (
<SidebarMenuItem key={item.title}>
<SidebarMenuButton asChild>
<a href={item.url}>
<Link href={item.url}>
<item.icon/>
<span>{item.title}</span>
</a>
</Link>
</SidebarMenuButton>
</SidebarMenuItem>
))}