Prefetch admin guide sections
CI / Verify (push) Successful in 55s
CI / Build immutable images and deploy (push) Successful in 1m14s

This commit is contained in:
2026-09-01 15:33:59 +07:00 Unverified
parent 4d815e3c6c
commit a23c5695c0
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -27,6 +27,7 @@ export function GuideSectionNav({
>
<Link
href={`/admin/${characterKey}`}
prefetch
className={cn(
"flex min-h-8 shrink-0 items-center gap-2 rounded-md px-3 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring",
current === "overview" ? "bg-muted text-foreground" : "text-muted-foreground hover:bg-muted hover:text-foreground",
@@ -41,6 +42,7 @@ export function GuideSectionNav({
<Link
key={section.slug}
href={`/admin/${characterKey}/${section.slug}`}
prefetch
className={cn(
"flex min-h-8 shrink-0 items-center gap-2 rounded-md px-3 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring",
current === section.slug ? "bg-muted text-foreground" : "text-muted-foreground hover:bg-muted hover:text-foreground",