refactor: remove prefetch attribute from sidebar and navigation links
This commit is contained in:
parent
3fcdaa7475
commit
2d5d0b8eb1
@ -147,7 +147,7 @@ export function AppSidebar() {
|
|||||||
<SidebarMenu>
|
<SidebarMenu>
|
||||||
<SidebarMenuItem>
|
<SidebarMenuItem>
|
||||||
<SidebarMenuButton size="lg" asChild>
|
<SidebarMenuButton size="lg" asChild>
|
||||||
<Link href={dashboard().url} prefetch>
|
<Link href={dashboard().url}>
|
||||||
<AppLogo />
|
<AppLogo />
|
||||||
</Link>
|
</Link>
|
||||||
</SidebarMenuButton>
|
</SidebarMenuButton>
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export function NavMain({
|
|||||||
isActive={item.isActive || isCurrentOrParentUrl(item.href)}
|
isActive={item.isActive || isCurrentOrParentUrl(item.href)}
|
||||||
tooltip={{ children: item.title }}
|
tooltip={{ children: item.title }}
|
||||||
>
|
>
|
||||||
<Link href={item.href} prefetch>
|
<Link href={item.href}>
|
||||||
{item.icon && <item.icon />}
|
{item.icon && <item.icon />}
|
||||||
<span>{item.title}</span>
|
<span>{item.title}</span>
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user