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 08f12c7 commit f90d7a9
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 f90d7a9

Please sign in to comment.