Enable richtext block
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
tobias 2024-06-23 23:12:32 +02:00
parent 9fa279b962
commit fa48a192e3
2 changed files with 6 additions and 2 deletions

View File

@ -25,13 +25,13 @@ const Pages: CollectionConfig = {
update: isAdmin, update: isAdmin,
delete: isAdmin, delete: isAdmin,
}, },
/* hooks: { hooks: {
afterChange: [ afterChange: [
async ({ doc, collection }) => { async ({ doc, collection }) => {
revalidateTag(generateDocumentCacheKey(collection.slug, doc.path)) revalidateTag(generateDocumentCacheKey(collection.slug, doc.path))
}, },
], ],
}, */ },
fields: [ fields: [
{ {
type: 'tabs', type: 'tabs',

View File

@ -1,4 +1,6 @@
import Paragraph from '@/app/(payload)/blocks/paragraph'
import Author from './Author' import Author from './Author'
import RichText from './RichText'
export type AdditionalBlockProps = { export type AdditionalBlockProps = {
blockIndex: number blockIndex: number
@ -7,6 +9,8 @@ export type AdditionalBlockProps = {
const blockComponents = { const blockComponents = {
Author: Author, Author: Author,
RichText: RichText,
Paragraph: Paragraph,
} }
const Blocks = ({ blocks, locale }: any) => { const Blocks = ({ blocks, locale }: any) => {