1
0
Fork 0

wip(fs.dev): Troubleshooting SSR themeing issues

This commit is contained in:
Joost De Cock 2021-12-30 14:23:02 +01:00
parent 14187b0cf7
commit 1bc0b4985c
5 changed files with 50 additions and 33 deletions

View file

@ -54,10 +54,15 @@ const AppWrapper= props => {
//}
return (
<div {...swipeHandlers}>
<div
{...swipeHandlers}
data-theme={props.app.theme}
key={props.app.theme}
className={`theme-${props.app.theme}`}
>
{props.noLayout
? props.children
: <Layout {...childProps}>{props.children}</Layout>
: <Layout {...childProps}><p className={`theme-${props.app.theme}`} data-theme={props.app.theme}>{props.app.theme}</p>{props.children}</Layout>
}
</div>
)