@logickernel/bridge 0.12.0 → 0.12.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.
@@ -12,7 +12,6 @@ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
12
12
  import { usePathname, useRouter } from 'next/navigation';
13
13
  import Link from 'next/link';
14
14
  import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
15
- import { signOut } from 'next-auth/react';
16
15
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
17
16
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
18
17
 
@@ -1107,10 +1106,6 @@ function NavUser({ user }) {
1107
1106
  const isMobile = sidebar?.isMobile ?? false;
1108
1107
  const initials = getInitials(user.name, user.email);
1109
1108
  const displayName = user.name || user.email;
1110
- const handleSignOut = async () => {
1111
- await signOut({ redirect: false });
1112
- window.location.href = "/core/auth/signin";
1113
- };
1114
1109
  return /* @__PURE__ */ jsx(SidebarMenu, { children: /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [
1115
1110
  /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
1116
1111
  SidebarMenuButton,
@@ -1154,10 +1149,10 @@ function NavUser({ user }) {
1154
1149
  "Account"
1155
1150
  ] }) }),
1156
1151
  /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
1157
- /* @__PURE__ */ jsxs(DropdownMenuItem, { onClick: handleSignOut, children: [
1152
+ /* @__PURE__ */ jsx(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs("a", { href: "/core/auth/logout", children: [
1158
1153
  /* @__PURE__ */ jsx(LogOut, {}),
1159
1154
  "Log out"
1160
- ] })
1155
+ ] }) })
1161
1156
  ]
1162
1157
  }
1163
1158
  )