@compill/admin 1.0.63 → 1.0.64

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/index.cjs.js CHANGED
@@ -2894,7 +2894,7 @@ function MenuItem(_a) {
2894
2894
  } = _a,
2895
2895
  props = __rest$1(_a, ["icon", "path", "depth", "darkMode", "subMenu", "children"]);
2896
2896
  const location = reactRouterDom.useLocation();
2897
- const selected = location.pathname.startsWith(path.startsWith("/") ? path : `/${path}`);
2897
+ const selected = path == "/" ? location.pathname == "/" : location.pathname.startsWith(path.startsWith("/") ? path : `/${path}`);
2898
2898
  // const match = useMatch("/" + path)// + "/*")
2899
2899
  // const selected = match != null
2900
2900
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
package/index.esm.js CHANGED
@@ -2884,7 +2884,7 @@ function MenuItem(_a) {
2884
2884
  } = _a,
2885
2885
  props = __rest$1(_a, ["icon", "path", "depth", "darkMode", "subMenu", "children"]);
2886
2886
  const location = useLocation();
2887
- const selected = location.pathname.startsWith(path.startsWith("/") ? path : `/${path}`);
2887
+ const selected = path == "/" ? location.pathname == "/" : location.pathname.startsWith(path.startsWith("/") ? path : `/${path}`);
2888
2888
  // const match = useMatch("/" + path)// + "/*")
2889
2889
  // const selected = match != null
2890
2890
  return jsxs(Fragment, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compill/admin",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "module": "./index.esm.js",
5
5
  "main": "./index.cjs.js"
6
6
  }