Removed notes
This commit is contained in:
parent
fc921703cf
commit
f9517c4262
|
@ -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 }),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
});
|
|
|
@ -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",
|
||||||
|
|
|
@ -46,7 +46,6 @@ export default buildConfig({
|
||||||
Collectibles,
|
Collectibles,
|
||||||
Folders,
|
Folders,
|
||||||
ChronologyEvents,
|
ChronologyEvents,
|
||||||
Notes,
|
|
||||||
|
|
||||||
Images,
|
Images,
|
||||||
Videos,
|
Videos,
|
||||||
|
|
Loading…
Reference in New Issue