mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
docs: fix import module name of theme/Admonition (#6164)
This commit is contained in:
parent
8791fd65af
commit
5dcfa8fa23
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in New Issue