@mercurjs/admin 2.0.0-canary.51 → 2.0.0-canary.53

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1630,10 +1630,10 @@ var NavItem = ({
1630
1630
  if (["core", "setting"].includes(type)) {
1631
1631
  isActive = pathname.startsWith(to2);
1632
1632
  if (isActive && !isNested && items?.length) {
1633
- const nestedMatch = items.some(
1633
+ const nestedIsActive = items.some(
1634
1634
  (item) => pathname.startsWith(item.to)
1635
1635
  );
1636
- if (nestedMatch) {
1636
+ if (nestedIsActive) {
1637
1637
  isActive = false;
1638
1638
  }
1639
1639
  }
@@ -2725,7 +2725,7 @@ var MainSidebar = () => {
2725
2725
  const customRoutesWithNested = customMenuItems.sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0)).map((item) => ({
2726
2726
  label: item.label,
2727
2727
  to: item.path,
2728
- icon: item.icon ? void 0 : void 0,
2728
+ icon: item.icon ? /* @__PURE__ */ jsx12(item.icon, {}) : void 0,
2729
2729
  translationNs: item.translationNs,
2730
2730
  items: addNestedItems(item.path)
2731
2731
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/admin",
3
- "version": "2.0.0-canary.51",
3
+ "version": "2.0.0-canary.53",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mercurjs/mercur",