@majapisoftwares/ui 4.3.6 → 4.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,10 +9,10 @@ export default function NavigationItem({ icon, children, href, exact, alternativ
9
9
  active =
10
10
  active === undefined
11
11
  ? exact
12
- ? router.pathname === href ||
13
- alternativeActiveHrefs?.some((href) => router.pathname === href)
14
- : router.pathname.includes(href) ||
15
- alternativeActiveHrefs?.some((href) => router.pathname.includes(href))
12
+ ? router.asPath === href ||
13
+ alternativeActiveHrefs?.some((href) => router.asPath === href)
14
+ : router.asPath.includes(href) ||
15
+ alternativeActiveHrefs?.some((href) => router.asPath.includes(href))
16
16
  : active;
17
17
  const isMobile = useMediaQuery(`(max-width: 1024px)`);
18
18
  return (<Button variant={active ? "light" : "text"} color={active ? "primary" : "default"} className={clsx("w-full justify-start border-transparent", className)} leading={icon &&
package/package.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/majapisoftwares/ui.git"
6
6
  },
7
- "version": "4.3.6"
7
+ "version": "4.3.8"
8
8
  }