@logickernel/bridge 0.11.0 → 0.11.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/next/components.cjs
CHANGED
|
@@ -1059,13 +1059,11 @@ function getInitials(name, email) {
|
|
|
1059
1059
|
function NavUser({ user }) {
|
|
1060
1060
|
const sidebar = useSidebar();
|
|
1061
1061
|
const isMobile = sidebar?.isMobile ?? false;
|
|
1062
|
-
const router = navigation.useRouter();
|
|
1063
1062
|
const initials = getInitials(user.name, user.email);
|
|
1064
1063
|
const displayName = user.name || user.email;
|
|
1065
1064
|
const handleSignOut = async () => {
|
|
1066
1065
|
await react.signOut({ redirect: false });
|
|
1067
|
-
|
|
1068
|
-
router.refresh();
|
|
1066
|
+
window.location.href = "/core/auth/signin";
|
|
1069
1067
|
};
|
|
1070
1068
|
return /* @__PURE__ */ jsxRuntime.jsx(SidebarMenu, { children: /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
1071
1069
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|