docs: fix import module name of theme/Admonition (#6164)

This commit is contained in:
Joshua Chen 2021-12-22 22:11:11 +08:00 committed by GitHub
parent 8791fd65af
commit 5dcfa8fa23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -83,8 +83,8 @@ Hello world
:::
<!-- Prettier changes this -->
::: note
Hello world
::: note
Hello world
:::
<!-- to this -->
@ -146,10 +146,10 @@ import TabItem from '@theme/TabItem';
## Usage in JSX
Outside of Markdown, you can use the `@theme/Admonitions` component to get the same output.
Outside of Markdown, you can use the `@theme/Admonition` component to get the same output.
```jsx title="MyReactPage.jsx"
import Admonition from '@theme/Admonitions';
import Admonition from '@theme/Admonition';
export default function MyReactPage() {
return (