From baa1bd66f6f46f059d7e966b156c2e52d71efccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Mon, 16 Mar 2026 14:49:37 -0300 Subject: [PATCH] fix: resolve sidebar active state bug and update navigation labels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added 'end' prop to NavLink in SidebarItem to ensure exact route matching. - Renamed 'Integrações (API)' to 'Integrações' for a cleaner UI. --- components/Layout.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/Layout.tsx b/components/Layout.tsx index ca1fed3..54f7460 100644 --- a/components/Layout.tsx +++ b/components/Layout.tsx @@ -16,6 +16,7 @@ import notificationSound from '../src/assets/audio/notification.mp3'; const SidebarItem = ({ to, icon: Icon, label, collapsed }: { to: string, icon: any, label: string, collapsed: boolean }) => ( `flex items-center gap-3 px-4 py-3 rounded-xl transition-all duration-200 group ${ isActive @@ -254,7 +255,7 @@ export const Layout: React.FC<{ children: React.ReactNode }> = ({ children }) => )} - + )}