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

@@ -18,7 +18,7 @@ import format from "date-fns/format";
import { TinaMarkdown } from "tinacms/dist/rich-text";
import { PostType } from "../../pages/posts/[filename]";
import { tinaField } from "tinacms/dist/react";
import inlineComponents from "../inline/inline-definitions";
import richTextComponents from "../rich-text/rich-text-definitions";
export const Post = (props: PostType) => {
const date = new Date(props.date);
@@ -97,7 +97,7 @@ export const Post = (props: PostType) => {
data-tina-field={ tinaField(props, "_body") }
className="prose dark:prose-dark w-full max-w-none"
>
<TinaMarkdown components={ inlineComponents } content={ props._body } />
<TinaMarkdown components={ richTextComponents } content={ props._body } />
</div>
</Container>
</Section>