File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
import Link from "next/link" ;
4
4
import { usePathname } from "next/navigation" ;
5
5
6
- import { SidebarNavItem } from "types" ;
6
+ import { NavItem } from "types" ;
7
7
import { docsConfig } from "@/config/docs" ;
8
8
import { cn } from "@/lib/utils" ;
9
9
@@ -18,7 +18,7 @@ export function DocsSidebarNav({ setOpen }: DocsSidebarNavProps) {
18
18
return items . length > 0 ? (
19
19
< div className = "w-full" >
20
20
{ items . map ( ( item ) => (
21
- < div key = { item . href + item . title } className = { cn ( "pb-8" ) } >
21
+ < div key = { item . title } className = { cn ( "pb-8" ) } >
22
22
< h4 className = "mb-1 rounded-md py-1 text-base font-medium md:px-2 md:text-sm" >
23
23
{ item . title }
24
24
</ h4 >
@@ -36,7 +36,7 @@ export function DocsSidebarNav({ setOpen }: DocsSidebarNavProps) {
36
36
}
37
37
38
38
interface DocsSidebarNavItemsProps {
39
- items : SidebarNavItem [ ] ;
39
+ items : NavItem [ ] ;
40
40
pathname : string | null ;
41
41
setOpen ?: ( boolean ) => void ;
42
42
}
@@ -59,7 +59,7 @@ export function DocsSidebarNavItems({
59
59
className = { cn (
60
60
"flex w-full items-center rounded-md px-2 py-1.5 text-muted-foreground hover:underline" ,
61
61
{
62
- "font-medium text-purple -600/95 dark:text-purple -400" :
62
+ "font-medium text-blue -600 dark:text-blue -400" :
63
63
pathname === item . href ,
64
64
} ,
65
65
) }
You can’t perform that action at this time.
0 commit comments