Removed notes

This commit is contained in:
DrMint 2024-04-05 14:14:39 +02:00
parent fc921703cf
commit f9517c4262
3 changed files with 0 additions and 23 deletions

View File

@ -1,20 +0,0 @@
import { CollectionConfig } from "payload/types";
import { Collections } from "../../constants";
import { buildCollectionConfig } from "../../utils/collectionConfig";
import { createEditor } from "../../utils/editor";
export const Notes: CollectionConfig = buildCollectionConfig({
slug: Collections.Notes,
labels: { singular: "Note", plural: "Notes" },
admin: {
// TODO: Reenable when we can use rich text as titles useAsTitle: fields.biography,
},
fields: [
{
name: "note",
type: "richText",
required: true,
editor: createEditor({ inlines: true, lists: true, links: true }),
},
],
});

View File

@ -5,9 +5,7 @@ import type { BreakBlock, Image, SectionBlock, TranscriptBlock } from "./types/c
export enum Collections { export enum Collections {
ChronologyEvents = "chronology-events", ChronologyEvents = "chronology-events",
Currencies = "currencies", Currencies = "currencies",
Files = "files",
Languages = "languages", Languages = "languages",
Notes = "notes",
Pages = "pages", Pages = "pages",
PagesThumbnails = "pages-thumbnails", PagesThumbnails = "pages-thumbnails",
Recorders = "recorders", Recorders = "recorders",

View File

@ -46,7 +46,6 @@ export default buildConfig({
Collectibles, Collectibles,
Folders, Folders,
ChronologyEvents, ChronologyEvents,
Notes,
Images, Images,
Videos, Videos,