fix(lab): Add mobile navigation
This commit is contained in:
parent
f7f920526a
commit
c3e54687fc
11 changed files with 46 additions and 62 deletions
|
@ -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>
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue