Skip to content

Commit

Permalink
fix(docz): add playground wrapper just around children
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jul 31, 2018
1 parent 0bd815d commit 66abfe8
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions packages/docz/src/components/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,14 @@ const BasePlayground: SFC<PlaygroundProps> = ({
if (!components || !components.render) return null

return (
<Wrapper>
<components.render
className={className}
style={style}
components={components}
component={isFn(children) ? children() : children}
position={__position}
code={__code}
/>
</Wrapper>
<components.render
className={className}
style={style}
components={components}
component={<Wrapper>{isFn(children) ? children() : children}</Wrapper>}
position={__position}
code={__code}
/>
)
}

Expand Down

0 comments on commit 66abfe8

Please sign in to comment.