fix: update dashboard link activation logic in AppSidebar component
This commit is contained in:
parent
2bb814702a
commit
1918f35ab2
@ -186,10 +186,10 @@ export function AppSidebar() {
|
|||||||
<SidebarGroup>
|
<SidebarGroup>
|
||||||
<SidebarMenu>
|
<SidebarMenu>
|
||||||
<SidebarMenuItem>
|
<SidebarMenuItem>
|
||||||
<SidebarMenuButton
|
<SidebarMenuButton
|
||||||
asChild
|
asChild
|
||||||
isActive={isCurrentUrl('/dashboard')}
|
isActive={isCurrentUrl(dasborItem.href)}
|
||||||
tooltip={{ children: dasborItem.title }}
|
tooltip={{ children: dasborItem.title }}
|
||||||
>
|
>
|
||||||
<Link href={dasborItem.href} prefetch>
|
<Link href={dasborItem.href} prefetch>
|
||||||
<dasborItem.icon />
|
<dasborItem.icon />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user