fix: update dashboard link activation logic in AppSidebar component

This commit is contained in:
Yoga Pangestu 2026-08-09 13:16:33 +07:00
parent 2bb814702a
commit 1918f35ab2

View File

@ -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 />