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
|
||||
|
||||
|
||||
@@ -15,18 +15,19 @@ const SidebarMenuMain = () => {
|
||||
fontIcon='bi-app-indicator'
|
||||
/>
|
||||
{/*<SidebarMenuItem to='/builder' icon='switch' title='Layout Builder' fontIcon='bi-layers' />*/}
|
||||
<div className='menu-item'>
|
||||
{/* <div className='menu-item'>
|
||||
<div className='menu-content pt-8 pb-2'>
|
||||
<span className='menu-section text-muted text-uppercase fs-8 ls-1'>Loan</span>
|
||||
</div>
|
||||
</div>
|
||||
</div> */}
|
||||
<SidebarMenuItemWithSub
|
||||
to='/loan/pages'
|
||||
title='Process'
|
||||
fontIcon='bi-archive'
|
||||
icon='element-plus'
|
||||
menuIsOpen={true}
|
||||
>
|
||||
<SidebarMenuItemWithSub to='/loan/pages/process' title='Loan' hasBullet={true}>
|
||||
<SidebarMenuItemWithSub to='/loan/pages/process' title='Loan' hasBullet={true} menuIsOpen={true}>
|
||||
<SidebarMenuItem to='/loan/pages/process/started' title='Started' hasBullet={true} />
|
||||
<SidebarMenuItem to='/loan/pages/process/pending' title='Pending' hasBullet={true} />
|
||||
<SidebarMenuItem
|
||||
@@ -34,6 +35,7 @@ const SidebarMenuMain = () => {
|
||||
title='Ready'
|
||||
hasBullet={true}
|
||||
/>
|
||||
<SidebarMenuItem to='/loan/pages/process/verified' title='Verified' hasBullet={true} />
|
||||
<SidebarMenuItem
|
||||
to='/loan/pages/process/approved'
|
||||
title='Approved'
|
||||
|
||||
Reference in New Issue
Block a user