1
0
Fork 0

fix(lab): Add mobile navigation

This commit is contained in:
Joost De Cock 2022-05-14 19:48:04 +02:00
parent f7f920526a
commit c3e54687fc
11 changed files with 46 additions and 62 deletions

View file

@ -5,6 +5,7 @@ import Link from 'next/link'
import Logo from 'shared/components/logos/freesewing.js'
import Aside from 'shared/components/navigation/aside'
import get from 'lodash.get'
import { BeforeNav } from './lab'
const PageTitle = ({ app, slug, title }) => {
if (title) return <h1>{title}</h1>
@ -56,10 +57,10 @@ const Breadcrumbs = ({ app, slug=false, title }) => {
const DefaultLayout = ({ app, title=false, children=[] }) => {
const router = useRouter()
const slug = router.asPath.slice(1)
console.log(BeforeNav)
return (
<>
<Aside app={app} slug={slug} mobileOnly />
<Aside app={app} slug={slug} before={<BeforeNav app={app}/>} mobileOnly />
{children}
</>
)