diff --git a/libs/ui/src/lib/layout/AppSidebar.tsx b/libs/ui/src/lib/layout/AppSidebar.tsx index 81825eee7..de1fdfcaf 100644 --- a/libs/ui/src/lib/layout/AppSidebar.tsx +++ b/libs/ui/src/lib/layout/AppSidebar.tsx @@ -2,6 +2,7 @@ import { useEffect, useMemo, useState } from 'react'; import { AppShell, Badge, + Collapse, Group, NavLink, Popover, @@ -14,7 +15,6 @@ import { useMantineColorScheme, } from '@mantine/core'; import { - IconChevronDown, IconChevronLeft, IconChevronRight, } from '@tabler/icons-react'; @@ -410,11 +410,15 @@ export function AppSidebar({ > {t(section.label)} - {sectionOpened ? ( - - ) : ( - - )} + )} {section.label && collapsed && sectionIndex > 0 && ( @@ -426,18 +430,21 @@ export function AppSidebar({ }} /> )} - {(!section.label || sectionOpened || collapsed) && - section.items.map((item) => ( - setItemOpened(item.label, next)} - /> - ))} + + + {section.items.map((item) => ( + setItemOpened(item.label, next)} + /> + ))} + + ); })}