Skip to content

Commit

Permalink
fix(docz): better default playground component
Browse files Browse the repository at this point in the history
  • Loading branch information
rakannimer committed Aug 30, 2019
1 parent 6889d0b commit 80b1c66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/docz/src/hooks/useComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ export interface ComponentsMap {
const DefNotFound: SFC = () => <Fragment>Not found</Fragment>
const DefLayout: SFC = ({ children }) => <Fragment>{children}</Fragment>
const DefPlayground: SFC<PlaygroundProps> = ({ component, code }) => (
<Fragment>
<div>
{component}
{code}
</Fragment>
<pre>{code}</pre>
</div>
)

const defaultComponents: ComponentsMap = {
Expand Down

0 comments on commit 80b1c66

Please sign in to comment.