Skip to content

Commit

Permalink
remove getComponents export, export useMDXComponents from `@mdx-j…
Browse files Browse the repository at this point in the history
…s/react` instead (#762)
  • Loading branch information
dimaMachina committed Sep 2, 2022
1 parent 9064112 commit e2d603a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/quick-rabbits-care.md
@@ -0,0 +1,5 @@
---
'nextra-theme-docs': patch
---

remove `getComponents` export, export `useMDXComponents` from `@mdx-js/react` instead
3 changes: 2 additions & 1 deletion packages/nextra-theme-docs/src/index.tsx
Expand Up @@ -277,7 +277,8 @@ export default function Layout(props: any): ReactElement {

type PartialDocsThemeConfig = RecursivePartial<DocsThemeConfig>

export { useConfig, getComponents, PartialDocsThemeConfig as DocsThemeConfig }
export { useConfig, PartialDocsThemeConfig as DocsThemeConfig }
export { useMDXComponents } from '@mdx-js/react'
export { useTheme } from 'next-themes'
export {
Bleed,
Expand Down

0 comments on commit e2d603a

Please sign in to comment.