From 0ad23550546bec78e2649d7e4bf15b95ffe1e12f Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Thu, 23 May 2024 18:46:46 +0200 Subject: [PATCH] Use cleaner name for component --- src/components.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components.tsx b/src/components.tsx index af79924..7824ea0 100644 --- a/src/components.tsx +++ b/src/components.tsx @@ -57,7 +57,7 @@ export type Content = )[]; }; -export const RenderRichText = ({ +export const RichText = ({ data, components, }: { @@ -112,7 +112,7 @@ export const RenderRichText = ({ let Element: keyof JSX.IntrinsicElements | ValueOf | null = null; let children: JSX.Element | string | null = item.content ? ( - + ) : null; let language = "plaintext"; switch (item.type) {