help page fixed
This commit was merged in pull request #51.
This commit is contained in:
@@ -2,12 +2,17 @@ import {useIntl} from 'react-intl'
|
||||
import {MenuItem} from './MenuItem'
|
||||
import {MenuInnerWithSub} from './MenuInnerWithSub'
|
||||
import {MegaMenu} from './MegaMenu'
|
||||
import { useLocation } from 'react-router-dom'
|
||||
|
||||
export function MenuInner() {
|
||||
const intl = useIntl()
|
||||
const {pathname} = useLocation()
|
||||
const isHelpPath = pathname == '/help'
|
||||
return (
|
||||
<>
|
||||
<MenuItem title={intl.formatMessage({id: 'MENU.DASHBOARD'})} to='/dashboard' />
|
||||
{/* <MenuItem title={intl.formatMessage({id: 'MENU.DASHBOARD'})} to='/dashboard' /> */}
|
||||
<MenuItem title={`${isHelpPath ? 'Help' : 'Dashboard'}`} to={`${isHelpPath ? '/help' : '/dashboard'}`} />
|
||||
|
||||
{/* <MenuItem title='Layout Builder' to='/builder' /> */}
|
||||
<MenuInnerWithSub
|
||||
title='Crafted'
|
||||
|
||||
Reference in New Issue
Block a user