1
0
Fork 0
mirror of https://codeberg.org/MarkusThielker/next-ory.git synced 2025-04-19 00:51:18 +00:00

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