Skip to content

Commit

Permalink
docs: fix import module name of theme/Admonition
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Dec 22, 2021
1 parent 8791fd6 commit 23d47dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ Hello world
:::

<!-- Prettier changes this -->
::: note
Hello world
::: note
Hello world
:::

<!-- to this -->
Expand Down Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ Hello world
:::

<!-- Prettier changes this -->
::: note
Hello world
::: note
Hello world
:::

<!-- to this -->
Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit 23d47dd

Please sign in to comment.