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,
delete: isAdmin,
},
/* hooks: {
hooks: {
afterChange: [
async ({ doc, collection }) => {
revalidateTag(generateDocumentCacheKey(collection.slug, doc.path))
},
],
}, */
},
fields: [
{
type: 'tabs',

View File

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