mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 09:16:22 +02:00
refactor: add isActive prop to SidebarButton and NavSection for improved active state management; update styles accordingly
This commit is contained in:
parent
020d806b1f
commit
44f59bfb61
3 changed files with 8 additions and 4 deletions
|
|
@ -97,6 +97,7 @@ export function NavSection({ items, onItemClick, isCollapsed = false }: NavSecti
|
|||
label={item.title}
|
||||
onClick={() => onItemClick?.(item)}
|
||||
isCollapsed={isCollapsed}
|
||||
isActive={item.isActive}
|
||||
badge={item.badge}
|
||||
collapsedOverlay={<CollapsedOverlay item={item} />}
|
||||
expandedIconNode={
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue