feat: 🔥 remove MenuSection as unnecessary
parent
23c3fed826
commit
85d8945eb1
@ -1,18 +0,0 @@
|
||||
import { Block } from "payload";
|
||||
|
||||
export const MenuSectionBlock: Block = {
|
||||
slug: "menu-section",
|
||||
fields: [
|
||||
{
|
||||
name: "name",
|
||||
type: "text",
|
||||
localized: true,
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
name: "description",
|
||||
type: "richText",
|
||||
localized: true,
|
||||
},
|
||||
],
|
||||
};
|
@ -1,26 +0,0 @@
|
||||
import type { CollectionConfig } from "payload";
|
||||
import { Menu } from "../groups/Menu";
|
||||
|
||||
export const MenuSection: CollectionConfig = {
|
||||
slug: "menu-section",
|
||||
access: {
|
||||
read: () => true,
|
||||
},
|
||||
admin: {
|
||||
useAsTitle: "name",
|
||||
group: Menu,
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: "name",
|
||||
type: "text",
|
||||
required: true,
|
||||
localized: true,
|
||||
},
|
||||
{
|
||||
name: "description",
|
||||
type: "richText",
|
||||
localized: true,
|
||||
},
|
||||
],
|
||||
};
|
Loading…
Reference in New Issue