feat: add secondary actions to publish button

This commit is contained in:
Jessica Chowdhury
2023-12-01 17:25:45 +00:00
parent bea79feaea
commit 5caf100a13
7 changed files with 162 additions and 22 deletions

View File

@@ -31,11 +31,11 @@ const DraftPosts: CollectionConfig = {
readVersions: ({ req: { user } }) => Boolean(user),
},
admin: {
components: {
edit: {
PublishButton: CustomPublishButton,
},
},
// components: {
// edit: {
// PublishButton: CustomPublishButton,
// },
// },
defaultColumns: ['title', 'description', 'createdAt', '_status'],
preview: () => 'https://payloadcms.com',
useAsTitle: 'title',