This commit is contained in:
parent
9fa279b962
commit
fa48a192e3
@ -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',
|
||||||
|
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user