Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
fix(docz): mdx provider import
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jun 25, 2018
1 parent a4db115 commit ded8cbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 0 additions & 7 deletions packages/docz/librc.js

This file was deleted.

6 changes: 3 additions & 3 deletions packages/docz/src/components/DocPreview.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import { Fragment, SFC, ComponentType } from 'react'
import { Switch, Route, RouteComponentProps } from 'react-router-dom'
import { MDXProvider } from '@mdx-js/tag'
import * as mdxtag from '@mdx-js/tag'
import loadable from 'loadable-components'

import { dataContext, Entry, ImportMap } from '../theme'
Expand Down Expand Up @@ -72,7 +72,7 @@ export const DocPreview: SFC<DocPreviewProps> = ({
const LoadingComponent = components.loading

return (
<MDXProvider components={components}>
<mdxtag.MDXProvider components={components}>
<dataContext.Consumer>
{({ imports, entries }) => (
<Switch>
Expand Down Expand Up @@ -106,6 +106,6 @@ export const DocPreview: SFC<DocPreviewProps> = ({
</Switch>
)}
</dataContext.Consumer>
</MDXProvider>
</mdxtag.MDXProvider>
)
}

0 comments on commit ded8cbb

Please sign in to comment.