feat: Implement CaptureShell layout with sub-navigation for capture section
This commit is contained in:
1 parent
a639d08037
commit
a4376d1cd8
6 files changed
+274
-94
No files matched your search
@@ -2,9 +2,11 @@ import { NavLink, useLocation } from 'react-router-dom'
|
||||
import { LogOut } from 'lucide-react'
|
||||
import { Avatar } from '../pages/ProfileSelect'
|
||||
import { getMainNavItems } from '../config/appNav'
|
||||
import { isCaptureSectionPath } from '../config/captureNav'
|
||||
|
||||
function sidebarLinkActive(pathname, item, routerIsActive) {
|
||||
if (item.to.startsWith('/admin')) return pathname.startsWith('/admin')
|
||||
if (item.to === '/capture' && isCaptureSectionPath(pathname)) return true
|
||||
return routerIsActive
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user