help page fixed

This commit was merged in pull request #51.
This commit is contained in:
victorAnumudu
2024-09-05 19:31:03 +01:00
parent 724e846826
commit 9b2e0a6857
4 changed files with 14 additions and 6 deletions
@@ -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'