Renamed inlineComponents to richTextComponents as this is closer to what they are

This commit was merged in pull request #16.
This commit is contained in:
2023-09-19 17:22:14 +02:00
parent 6be84ae480
commit 6f3e84de94
8 changed files with 8 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ import type { Template } from "tinacms";
import { PageBlocksContent } from "../../tina/__generated__/types";
import { tinaField } from "tinacms/dist/react";
import { PageBlockFunction } from "../blocks-renderer";
import inlineComponents, { richTextTemplates } from "../inline/inline-definitions";
import richTextComponents, { richTextTemplates } from "../rich-text/rich-text-definitions";
export const Content: PageBlockFunction<PageBlocksContent> = ({ data }) => {
return (
@@ -17,7 +17,7 @@ export const Content: PageBlockFunction<PageBlocksContent> = ({ data }) => {
size="custom"
width="large"
>
<TinaMarkdown components={ inlineComponents } content={ data.body } />
<TinaMarkdown components={ richTextComponents } content={ data.body } />
</Container>
</Section>
);