Skip to content

Commit db0143f

Browse files
jankeromnesroboquat
authored andcommitted
[dashboard] Fix PageWithSubMenu selection state
1 parent 36ed3e0 commit db0143f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dashboard/src/components/PageWithSubMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function PageWithSubMenu(p: PageWithSubMenuProps) {
2727
<ul className="flex flex-col text tracking-wide text-gray-500 pt-4 lg:pt-0 w-48 space-y-2">
2828
{p.subMenu.map(e => {
2929
let classes = "flex block py-2 px-4 rounded-md";
30-
if (e.link.some(l => l.toLocaleLowerCase() === location.pathname)) {
30+
if (e.link.some(l => l === location.pathname)) {
3131
classes += " bg-gray-800 text-gray-50";
3232
} else {
3333
classes += " hover:bg-gray-100 dark:hover:bg-gray-800";

0 commit comments

Comments
 (0)