From 133b5a540438402f905078408cfc3a2bb3c18f97 Mon Sep 17 00:00:00 2001 From: gearnode Date: Sun, 9 Feb 2025 19:07:55 -0800 Subject: [PATCH] Use react router link Signed-off-by: gearnode --- apps/console/src/components/NavMain.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/console/src/components/NavMain.tsx b/apps/console/src/components/NavMain.tsx index 9be7b119f..d17dfea23 100644 --- a/apps/console/src/components/NavMain.tsx +++ b/apps/console/src/components/NavMain.tsx @@ -1,6 +1,7 @@ "use client"; import { ChevronRight, type LucideIcon } from "lucide-react"; +import { Link } from "react-router"; import { Collapsible, @@ -41,10 +42,10 @@ export function NavMain({ - + {item.title} - + {item.items?.length ? ( <> @@ -59,9 +60,9 @@ export function NavMain({ {item.items?.map((subItem) => ( - + {subItem.title} - + ))}