Improve nav active state detection logic

Refined the active state logic in NavItem to ensure /dashboard and /dashboard/admin only match exactly, preventing sub-paths from being incorrectly marked as active.
This commit is contained in:
g
2025-11-30 00:29:57 +00:00
parent 785509fed9
commit 4ef0fd1a68
2 changed files with 9 additions and 3 deletions

View File

@@ -372,4 +372,4 @@ export default function AdminBanPage() {
</Card>
</div>
);
}
}