mirror of
https://git.meshkee.com/Meshkee/dashboards.git
synced 2026-08-11 22:30:58 +04:30
Polish business FA layout and wire special-group keys plus SSL sync.
RTL carousels/FABs, special key+title fields, slider gallery fixes, and dashboard SSL sync agent for super-admin. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
66004a0fba
commit
672091d1f5
@@ -201,15 +201,18 @@ export function Sidebar() {
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
navItems.forEach((item) => {
|
||||
if (item.type === 'group' && isGroupActive(item.basePath, pathname)) {
|
||||
setOpenGroups((prev) => ({ ...prev, [item.id]: true }))
|
||||
}
|
||||
})
|
||||
const activeGroup = navItems.find(
|
||||
(item) => item.type === 'group' && isGroupActive(item.basePath, pathname),
|
||||
)
|
||||
if (!activeGroup || activeGroup.type !== 'group') return
|
||||
setOpenGroups({ [activeGroup.id]: true })
|
||||
}, [pathname, navItems])
|
||||
|
||||
function toggleGroup(id: string) {
|
||||
setOpenGroups((prev) => ({ ...prev, [id]: !prev[id] }))
|
||||
setOpenGroups((prev) => {
|
||||
const willOpen = !prev[id]
|
||||
return willOpen ? { [id]: true } : {}
|
||||
})
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user