@logickernel/bridge 0.11.10 → 0.12.1

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
 
@@ -894,9 +893,9 @@ function NavMain({ items }) {
894
893
  });
895
894
  }
896
895
  if (useLink2) {
897
- return /* @__PURE__ */ jsx(SidebarMenuSubItem, { children: /* @__PURE__ */ jsx(SidebarMenuSubButton, { asChild: true, children: /* @__PURE__ */ jsx(Link, { href: linkHref2, onClick: handleClick, className: "text-blue-500", children: /* @__PURE__ */ jsx("span", { children: subItem.title }) }) }) }, subItem.title);
896
+ return /* @__PURE__ */ jsx(SidebarMenuSubItem, { children: /* @__PURE__ */ jsx(SidebarMenuSubButton, { asChild: true, children: /* @__PURE__ */ jsx(Link, { href: linkHref2, onClick: handleClick, children: /* @__PURE__ */ jsx("span", { children: subItem.title }) }) }) }, subItem.title);
898
897
  }
899
- return /* @__PURE__ */ jsx(SidebarMenuSubItem, { children: /* @__PURE__ */ jsx(SidebarMenuSubButton, { asChild: true, children: /* @__PURE__ */ jsx("a", { href: subItem.url, className: "text-red-500", onClick: handleClick, children: /* @__PURE__ */ jsx("span", { children: subItem.title }) }) }) }, subItem.title);
898
+ return /* @__PURE__ */ jsx(SidebarMenuSubItem, { children: /* @__PURE__ */ jsx(SidebarMenuSubButton, { asChild: true, children: /* @__PURE__ */ jsx("a", { href: subItem.url, onClick: handleClick, children: /* @__PURE__ */ jsx("span", { children: subItem.title }) }) }) }, subItem.title);
900
899
  }) }) })
901
900
  ] })
902
901
  },
@@ -923,7 +922,7 @@ function NavMain({ items }) {
923
922
  asChild: true,
924
923
  tooltip: item.title,
925
924
  isActive,
926
- children: /* @__PURE__ */ jsxs(Link, { href: linkHref, onClick: handleClick, className: "text-blue-500", children: [
925
+ children: /* @__PURE__ */ jsxs(Link, { href: linkHref, onClick: handleClick, children: [
927
926
  item.icon && /* @__PURE__ */ jsx(item.icon, {}),
928
927
  /* @__PURE__ */ jsx("span", { children: item.title })
929
928
  ] })
@@ -936,7 +935,7 @@ function NavMain({ items }) {
936
935
  asChild: true,
937
936
  tooltip: item.title,
938
937
  isActive,
939
- children: /* @__PURE__ */ jsxs("a", { href: item.url, className: "text-red-500", onClick: handleClick, children: [
938
+ children: /* @__PURE__ */ jsxs("a", { href: item.url, onClick: handleClick, children: [
940
939
  item.icon && /* @__PURE__ */ jsx(item.icon, {}),
941
940
  /* @__PURE__ */ jsx("span", { children: item.title })
942
941
  ] })
@@ -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
  )