Skip to content

Commit

Permalink
Ensure cleaner name for exports (#1)
Browse files Browse the repository at this point in the history
* Bumped Bun lockfile

* Use cleaner name for component
  • Loading branch information
leo committed May 23, 2024
1 parent 23b6a0b commit e2a4382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
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 e2a4382

Please sign in to comment.