We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36ed3e0 commit db0143fCopy full SHA for db0143f
components/dashboard/src/components/PageWithSubMenu.tsx
@@ -27,7 +27,7 @@ export function PageWithSubMenu(p: PageWithSubMenuProps) {
27
<ul className="flex flex-col text tracking-wide text-gray-500 pt-4 lg:pt-0 w-48 space-y-2">
28
{p.subMenu.map(e => {
29
let classes = "flex block py-2 px-4 rounded-md";
30
- if (e.link.some(l => l.toLocaleLowerCase() === location.pathname)) {
+ if (e.link.some(l => l === location.pathname)) {
31
classes += " bg-gray-800 text-gray-50";
32
} else {
33
classes += " hover:bg-gray-100 dark:hover:bg-gray-800";
0 commit comments