use body styles for rich text block and separate component

This commit is contained in:
2024-05-10 13:13:27 +02:00
parent e3f24fff46
commit e1a4f3233e
3 changed files with 121 additions and 8 deletions

View File

@@ -1,11 +1,4 @@
export const RichTextBlock = ({ block }: any) => {
return (
<div
className="rich-text-block"
dangerouslySetInnerHTML={{ __html: block.value }}
></div>
);
};
import { RichTextBlock } from "./RichTextBlock";
export const Blocks = ({ blocks }: any) => {
return blocks.map((block: any) => {