diff --git a/src/components/dashboard/DashboardMain.tsx b/src/components/dashboard/DashboardMain.tsx index e194930e..456a554c 100644 --- a/src/components/dashboard/DashboardMain.tsx +++ b/src/components/dashboard/DashboardMain.tsx @@ -12,7 +12,7 @@ export const DashboardMain: React.FC<{ const isMobileLayout = useMobileLayout() return ( -
+
- {children(isOpen)} -
setIsOpen(!isOpen)} + className={`${ + isOpen ? `w-sidebar` : "w-20" + } transition-[width] fixed bg-slate-50 z-10 h-full flex flex-col`} > - {isOpen ? ( - - ) : ( - - )} + {children(isOpen)} +
+
setIsOpen(!isOpen)} + > + {isOpen ? ( + + ) : ( + + )} +
)