eai-frontend-components 2.0.6 → 2.0.7
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.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3018,7 +3018,7 @@ const SidebarItemTwoLines = ({ item }) => {
|
|
|
3018
3018
|
};
|
|
3019
3019
|
|
|
3020
3020
|
const ModuleSwitcher = ({ modules, activeModule, onModuleChange, }) => {
|
|
3021
|
-
const
|
|
3021
|
+
const isMobile = useIsMobile();
|
|
3022
3022
|
return (jsx(SidebarMenu, { children: jsx(SidebarMenuItem, { children: jsxs(DropdownMenu, { children: [jsx(DropdownMenuTrigger, { asChild: true, children: jsx(SidebarMenuButton, { size: 'lg', className: 'data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground', children: jsx(SidebarItemTwoLines, { item: {
|
|
3023
3023
|
iconLeft: (jsx("div", { className: 'flex p-[7.6px] items-center rounded-md bg-background-primary', children: activeModule?.icon })),
|
|
3024
3024
|
title: activeModule?.title ?? '',
|
|
@@ -3094,7 +3094,7 @@ const NavMain = ({ pages }) => {
|
|
|
3094
3094
|
|
|
3095
3095
|
const NavUser = ({ userName, userEmail, userInitials, callbackLogout }) => {
|
|
3096
3096
|
const [isLoggingOut, setIsLoggingOut] = useState(false);
|
|
3097
|
-
const
|
|
3097
|
+
const isMobile = useIsMobile();
|
|
3098
3098
|
const handleLogout = () => {
|
|
3099
3099
|
setIsLoggingOut(true);
|
|
3100
3100
|
setTimeout(() => {
|