@pelatform/starter.shared 0.2.1 → 0.2.2
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.js +4 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -669,7 +669,7 @@ function HeaderSidebarMobile({ children }) {
|
|
|
669
669
|
import { useCallback as useCallback2, useMemo } from "react";
|
|
670
670
|
import Link5 from "next/link";
|
|
671
671
|
import { usePathname as usePathname3 } from "next/navigation";
|
|
672
|
-
import { useTranslations as useTranslations8 } from "next-intl";
|
|
672
|
+
import { useLocale as useLocale3, useTranslations as useTranslations8 } from "next-intl";
|
|
673
673
|
import { useLayout as useLayout2 } from "@pelatform/starter.hook";
|
|
674
674
|
import { BackLink } from "pelatform-ui/components";
|
|
675
675
|
import {
|
|
@@ -709,6 +709,7 @@ function SidebarContentMenu({
|
|
|
709
709
|
menu,
|
|
710
710
|
type = "default"
|
|
711
711
|
}) {
|
|
712
|
+
const locale = useLocale3();
|
|
712
713
|
const pathname = usePathname3();
|
|
713
714
|
const normalize = useCallback2((p) => {
|
|
714
715
|
if (!p) return "/";
|
|
@@ -794,7 +795,8 @@ function SidebarContentMenu({
|
|
|
794
795
|
return /* @__PURE__ */ jsx11(AccordionMenuItem, { value: child.path || "#", children: /* @__PURE__ */ jsx11(Link5, { href: child.path || "#", children: content }) }, idx);
|
|
795
796
|
}) })
|
|
796
797
|
] }, index))
|
|
797
|
-
}
|
|
798
|
+
},
|
|
799
|
+
`toggle-menu-${locale}`
|
|
798
800
|
);
|
|
799
801
|
}
|
|
800
802
|
return /* @__PURE__ */ jsx11(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pelatform/starter.shared",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "A part of SaaS starter kit for Pelatform applications.",
|
|
5
5
|
"author": "Pelatform",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@pelatform/starter.utils": "0.2.1",
|
|
45
45
|
"@pelatform/tsconfig": "^0.1.3",
|
|
46
46
|
"@types/react": "^19.2.7",
|
|
47
|
-
"lucide-react": "^0.
|
|
47
|
+
"lucide-react": "^0.559.0",
|
|
48
48
|
"next": "^16.0.8",
|
|
49
49
|
"next-intl": "^4.5.8",
|
|
50
50
|
"pelatform-ui": "^1.1.3",
|