Skip to content

Commit

Permalink
fix(gatsby-theme-docz): fix playground react-resize-detector usage (#…
Browse files Browse the repository at this point in the history
…1350)

Fixed usage of react-resize-detector onResize callback
  • Loading branch information
rafarovina authored and rakannimer committed Jan 9, 2020
1 parent 2bef9ba commit f0baf67
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 @@ -90,7 +90,7 @@ export const Playground = ({ code, scope, language, useScoping = false }) => {
)}
<ReactResizeDetector
handleHeight
onResize={(width, height) => {
onResize={({ height }) => {
setPreviewHeight(height)
}}
/>
Expand All @@ -111,7 +111,7 @@ export const Playground = ({ code, scope, language, useScoping = false }) => {
</div>
<ReactResizeDetector
handleHeight
onResize={(width, height) => {
onResize={({ height }) => {
setEditorHeight(height)
}}
/>
Expand Down

0 comments on commit f0baf67

Please sign in to comment.