feat: Update Auth Control

This commit is contained in:
web@ppanel
2025-01-13 21:07:27 +07:00
parent dd23279e3e
commit c59742a4f3
143 changed files with 4195 additions and 1512 deletions
+5 -1
View File
@@ -61,7 +61,11 @@ export function SidebarLeft({ ...props }: React.ComponentProps<typeof Sidebar>)
<SidebarMenuButton
asChild
tooltip={t(item.title)}
isActive={item.url === pathname}
isActive={
item.url === '/dashboard'
? pathname === item.url
: pathname.startsWith(item.url)
}
>
<Link href={item.url}>
{item.icon && <Icon icon={item.icon} />}