eai-frontend-components 2.0.8 → 2.0.9

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 CHANGED
@@ -3058,7 +3058,7 @@ const SidebarItemTwoLines = ({ item }) => {
3058
3058
  };
3059
3059
 
3060
3060
  const ModuleSwitcher = ({ modules, activeModule, onModuleChange, }) => {
3061
- const isMobile = useIsMobile();
3061
+ const { isMobile } = useSidebar();
3062
3062
  return (jsxRuntime.jsx(SidebarMenu, { children: jsxRuntime.jsx(SidebarMenuItem, { children: jsxRuntime.jsxs(DropdownMenu, { children: [jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: jsxRuntime.jsx(SidebarMenuButton, { size: 'lg', className: 'data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground', children: jsxRuntime.jsx(SidebarItemTwoLines, { item: {
3063
3063
  iconLeft: (jsxRuntime.jsx("div", { className: 'flex p-[7.6px] items-center rounded-md bg-background-primary', children: activeModule?.icon })),
3064
3064
  title: activeModule?.title ?? '',
@@ -3134,7 +3134,7 @@ const NavMain = ({ pages }) => {
3134
3134
 
3135
3135
  const NavUser = ({ userName, userEmail, userInitials, callbackLogout }) => {
3136
3136
  const [isLoggingOut, setIsLoggingOut] = React.useState(false);
3137
- const isMobile = useIsMobile();
3137
+ const { isMobile } = useSidebar();
3138
3138
  const handleLogout = () => {
3139
3139
  setIsLoggingOut(true);
3140
3140
  setTimeout(() => {