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

@ -1,6 +1,6 @@
import PrimaryNavigation from './primary'
const Aside = ({ app, slug, mobileOnly=false }) => (
const Aside = ({ app, slug, mobileOnly=false, before=[], after=[]}) => (
<aside className={`
fixed top-0 right-0 h-screen w-screen
overflow-y-auto z-20
@ -17,7 +17,9 @@ const Aside = ({ app, slug, mobileOnly=false }) => (
2xl:pr-8
${mobileOnly ? 'block md:hidden' : ''}
`}>
{before}
<PrimaryNavigation app={app} active={slug}/>
{after}
</aside>
)