Commit c2a208d1 authored by Leon's avatar Leon Committed by Tim Neutkens

Update styletron example (#5879)

Missed a fix for the styletron api. Previous config won't work for server rendering.
parent 620b4269
......@@ -16,8 +16,8 @@ export default class MyDocument extends Document {
{this.props.stylesheets.map((sheet, i) => (
<style
className='_styletron_hydrate_'
dangerouslySetInnerHTML={{ __html: sheet.css }}
media={sheet.media || null}
dangerouslySetInnerHTML={{ __html: sheet }}
media={sheet.attrs ? sheet.attrs.media : null}
key={i}
/>
))}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment