@lincros-ui/components 0.2.22 → 0.2.24
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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4885,7 +4885,7 @@ function useSidebarState(routePaths) {
|
|
|
4885
4885
|
return expandedMenus.includes(menuTitle);
|
|
4886
4886
|
};
|
|
4887
4887
|
const isMenuItemActive = (url) => {
|
|
4888
|
-
return location.pathname
|
|
4888
|
+
return location.pathname === url;
|
|
4889
4889
|
};
|
|
4890
4890
|
const isExactMenuItemActive = (url) => {
|
|
4891
4891
|
return location.pathname === url;
|