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>
|
||||
<SidebarMenu>
|
||||
<SidebarMenuItem>
|
||||
<SidebarMenuButton
|
||||
asChild
|
||||
isActive={isCurrentUrl('/dashboard')}
|
||||
tooltip={{ children: dasborItem.title }}
|
||||
<SidebarMenuButton
|
||||
asChild
|
||||
isActive={isCurrentUrl(dasborItem.href)}
|
||||
tooltip={{ children: dasborItem.title }}
|
||||
>
|
||||
<Link href={dasborItem.href} prefetch>
|
||||
<dasborItem.icon />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user