wip(fs.dev): Troubleshooting SSR themeing issues
This commit is contained in:
parent
14187b0cf7
commit
1bc0b4985c
5 changed files with 50 additions and 33 deletions
|
@ -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>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue