Skip to content

Commit

Permalink
fix(docz): prevent default components object with no render
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jul 18, 2018
1 parent d451aeb commit 4535aef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/docz/src/components/DocPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,13 @@ export interface DocPreviewProps {
}

export const DocPreview: SFC<DocPreviewProps> = ({
components = defaultComponents,
components: themeComponents = {},
}) => {
const components = {
...defaultComponents,
...themeComponents,
}

const Page = components.page
const NotFound = components.notFound
const LoadingComponent = components.loading
Expand Down

0 comments on commit 4535aef

Please sign in to comment.