started prepping for old vs new docs setup

This commit is contained in:
Jonathan Summers-Muir
2022-11-21 16:05:03 +08:00
parent a32dfa4f71
commit 6c4bca8f0e
8 changed files with 140 additions and 39 deletions

View File

@@ -7,6 +7,8 @@ import * as NavItems from './NavigationMenu.constants'
const NavigationMenuGuideList = ({ currentLevel, setLevel, tempBasePath, id }) => {
const router = useRouter()
tempBasePath = ''
const menu = NavItems[id]
return (
@@ -66,7 +68,7 @@ const NavigationMenuGuideList = ({ currentLevel, setLevel, tempBasePath, id }) =
{x.items.map((x) => {
return (
<li key={x.name}>
<Link href={`/${tempBasePath}${x.href}`} passHref>
<Link href={`/${tempBasePath}${x.url}`} passHref>
<a className="cursor-pointer transition text-scale-1000 text-sm hover:text-brand-900">
{x.name}
</a>
@@ -77,7 +79,7 @@ const NavigationMenuGuideList = ({ currentLevel, setLevel, tempBasePath, id }) =
</>
) : (
<li>
<Link href={`/${tempBasePath}${x.href}`} passHref>
<Link href={`/${tempBasePath}${x.url}`} passHref>
<a className="cursor-pointer transition text-scale-1000 text-sm hover:text-brand-900 flex gap-3">
{x.icon && <img className="w-3" src={`${router.basePath}${x.icon}`} />}
{x.name}