refactor: remove prefetch attribute from sidebar and navigation links

This commit is contained in:
Yoga Pangestu 2026-05-02 17:19:45 +07:00
parent 3fcdaa7475
commit 2d5d0b8eb1
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ export function AppSidebar() {
<SidebarMenu>
<SidebarMenuItem>
<SidebarMenuButton size="lg" asChild>
<Link href={dashboard().url} prefetch>
<Link href={dashboard().url}>
<AppLogo />
</Link>
</SidebarMenuButton>

View File

@ -29,7 +29,7 @@ export function NavMain({
isActive={item.isActive || isCurrentOrParentUrl(item.href)}
tooltip={{ children: item.title }}
>
<Link href={item.href} prefetch>
<Link href={item.href}>
{item.icon && <item.icon />}
<span>{item.title}</span>
</Link>