fix(dev): Include theme picker in mobile menu
This commit is contained in:
parent
a7ca7a9162
commit
c24f4460a9
2 changed files with 4 additions and 2 deletions
|
@ -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 ThemePicker from 'shared/components/theme-picker'
|
||||
|
||||
const PageTitle = ({ app, slug, title }) => {
|
||||
if (title) return <h1>{title}</h1>
|
||||
|
@ -59,7 +60,7 @@ const DefaultLayout = ({ app, title=false, children=[] }) => {
|
|||
|
||||
return (
|
||||
<>
|
||||
<Aside app={app} slug={slug} mobileOnly />
|
||||
<Aside app={app} slug={slug} before={<ThemePicker app={app} />} mobileOnly/>
|
||||
{children}
|
||||
</>
|
||||
)
|
||||
|
|
|
@ -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 ThemePicker from 'shared/components/theme-picker'
|
||||
|
||||
const PageTitle = ({ app, slug, title }) => {
|
||||
if (title) return <h1>{title}</h1>
|
||||
|
@ -59,7 +60,7 @@ const DefaultLayout = ({ app, title=false, children=[] }) => {
|
|||
|
||||
return (
|
||||
<div className="m-auto flex flex-row justify-center">
|
||||
<Aside app={app} slug={slug} />
|
||||
<Aside app={app} slug={slug} before={<ThemePicker app={app}/>}/>
|
||||
<section className="py-28 md:py-36">
|
||||
<div>
|
||||
{title && (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue