Skip to content

Commit a78d130

Browse files
committed
fix: change docs sidenav
1 parent 25f1864 commit a78d130

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/docs/sidebar-nav.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import Link from "next/link";
44
import { usePathname } from "next/navigation";
55

6-
import { SidebarNavItem } from "types";
6+
import { NavItem } from "types";
77
import { docsConfig } from "@/config/docs";
88
import { 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

3838
interface 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
)}

0 commit comments

Comments
 (0)