Skip to content

Commit

Permalink
fix(gatsby-theme-docz): use sx instead of style prop in Playgro… (#1389)
Browse files Browse the repository at this point in the history
  • Loading branch information
floriangosse committed Feb 12, 2020
1 parent 80a0e1e commit 98f3311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/gatsby-theme-docz/src/components/Playground/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const Playground = ({ code, scope, language, useScoping = false }) => {
<div sx={styles.previewWrapper}>
<Wrapper height={previewHeight}>
{showLivePreview && (
<LivePreview style={styles.preview} data-testid="live-preview" />
<LivePreview sx={styles.preview} data-testid="live-preview" />
)}
<ReactResizeDetector
handleHeight
Expand All @@ -106,7 +106,7 @@ export const Playground = ({ code, scope, language, useScoping = false }) => {
</div>
{showingCode && (
<Wrapper height={editorHeight}>
<div style={styles.editor(theme)}>
<div sx={styles.editor(theme)}>
<LiveEditor data-testid="live-editor" />
</div>
<ReactResizeDetector
Expand Down

0 comments on commit 98f3311

Please sign in to comment.