Skip to content

Commit

Permalink
Use cleaner name for component
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed May 23, 2024
1 parent 3a54ca7 commit 0ad2355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export type Content =
)[];
};

export const RenderRichText = ({
export const RichText = ({
data,
components,
}: {
Expand Down Expand Up @@ -112,7 +112,7 @@ export const RenderRichText = ({

let Element: keyof JSX.IntrinsicElements | ValueOf<ReactHTML> | null = null;
let children: JSX.Element | string | null = item.content ? (
<RenderRichText data={item.content} components={components} />
<RichText data={item.content} components={components} />
) : null;
let language = "plaintext";
switch (item.type) {
Expand Down

0 comments on commit 0ad2355

Please sign in to comment.