@crystaltech/hsms-shared-ui 0.5.4 → 0.5.5
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.es.js +7 -7
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -43868,26 +43868,26 @@ const L5 = nt(/* @__PURE__ */ A.jsx("path", {
|
|
|
43868
43868
|
userManage: e,
|
|
43869
43869
|
logoutHandler: t
|
|
43870
43870
|
}) => {
|
|
43871
|
-
const [n, r] = xt(null), [i, a] = xt(!1), { user: s, redirectUrl: l } = e;
|
|
43871
|
+
const [n, r] = xt(null), [i, a] = xt(!1), { user: s, redirectUrl: l } = e, c = window.location.origin;
|
|
43872
43872
|
ra(() => {
|
|
43873
|
-
s || (localStorage.clear(), sessionStorage.clear(), window.location.
|
|
43873
|
+
s || (localStorage.clear(), sessionStorage.clear(), window.location.href = c + "/skh");
|
|
43874
43874
|
}, [s]);
|
|
43875
|
-
const
|
|
43876
|
-
r(
|
|
43877
|
-
},
|
|
43875
|
+
const u = (p) => {
|
|
43876
|
+
r(p.currentTarget), a(!0);
|
|
43877
|
+
}, d = () => {
|
|
43878
43878
|
a(!1);
|
|
43879
43879
|
};
|
|
43880
43880
|
return /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
|
43881
43881
|
/* @__PURE__ */ A.jsxs(a0, { direction: "row", alignItems: "center", children: [
|
|
43882
43882
|
/* @__PURE__ */ A.jsx(gW, {}),
|
|
43883
|
-
/* @__PURE__ */ A.jsx(Os, { onClick:
|
|
43883
|
+
/* @__PURE__ */ A.jsx(Os, { onClick: u, children: /* @__PURE__ */ A.jsx(Cv, { src: s == null ? void 0 : s.image, alt: s == null ? void 0 : s.name }) })
|
|
43884
43884
|
] }),
|
|
43885
43885
|
/* @__PURE__ */ A.jsx(
|
|
43886
43886
|
xv,
|
|
43887
43887
|
{
|
|
43888
43888
|
open: i,
|
|
43889
43889
|
anchorEl: n,
|
|
43890
|
-
onClose:
|
|
43890
|
+
onClose: d,
|
|
43891
43891
|
anchorOrigin: {
|
|
43892
43892
|
vertical: "bottom",
|
|
43893
43893
|
horizontal: "center"
|