side bar update
This commit was merged in pull request #37.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user