File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 33import Link from "next/link" ;
44import { usePathname } from "next/navigation" ;
55
6- import { SidebarNavItem } from "types" ;
6+ import { NavItem } from "types" ;
77import { docsConfig } from "@/config/docs" ;
88import { cn } from "@/lib/utils" ;
99
@@ -18,7 +18,7 @@ export function DocsSidebarNav({ setOpen }: DocsSidebarNavProps) {
1818 return items . length > 0 ? (
1919 < div className = "w-full" >
2020 { items . map ( ( item ) => (
21- < div key = { item . href + item . title } className = { cn ( "pb-8" ) } >
21+ < div key = { item . title } className = { cn ( "pb-8" ) } >
2222 < h4 className = "mb-1 rounded-md py-1 text-base font-medium md:px-2 md:text-sm" >
2323 { item . title }
2424 </ h4 >
@@ -36,7 +36,7 @@ export function DocsSidebarNav({ setOpen }: DocsSidebarNavProps) {
3636}
3737
3838interface DocsSidebarNavItemsProps {
39- items : SidebarNavItem [ ] ;
39+ items : NavItem [ ] ;
4040 pathname : string | null ;
4141 setOpen ?: ( boolean ) => void ;
4242}
@@ -59,7 +59,7 @@ export function DocsSidebarNavItems({
5959 className = { cn (
6060 "flex w-full items-center rounded-md px-2 py-1.5 text-muted-foreground hover:underline" ,
6161 {
62- "font-medium text-purple -600/95 dark:text-purple -400" :
62+ "font-medium text-blue -600 dark:text-blue -400" :
6363 pathname === item . href ,
6464 } ,
6565 ) }
You can’t perform that action at this time.
0 commit comments