side bar update

This commit was merged in pull request #37.
This commit is contained in:
victorAnumudu
2024-07-11 17:31:34 +01:00
parent 2eb12129bb
commit 450ae649c3
34 changed files with 1738 additions and 4 deletions
@@ -10,6 +10,7 @@ type Props = {
icon?: string
fontIcon?: string
hasBullet?: boolean
menuIsOpen?: boolean
}
const SidebarMenuItemWithSub: React.FC<Props & WithChildren> = ({
@@ -19,9 +20,10 @@ const SidebarMenuItemWithSub: React.FC<Props & WithChildren> = ({
icon,
fontIcon,
hasBullet,
menuIsOpen=false
}) => {
const {pathname} = useLocation()
const isActive = checkIsActive(pathname, to)
const isActive = checkIsActive(pathname, to) || menuIsOpen
const {config} = useLayout()
const {app} = config