dev #12

Merged
RizqiSyahrendra merged 10 commits from dev into main 2025-03-06 05:00:36 +00:00
2 changed files with 10 additions and 0 deletions
Showing only changes of commit b330c5296f - Show all commits

View File

@ -1,5 +1,6 @@
import type { CollectionConfig } from "payload";
import { lexicalEditor } from "@payloadcms/richtext-lexical";
import formatSlug from "@/utils/payload/formatSlug";
export const Teams: CollectionConfig = {
slug: "teams",
@ -9,6 +10,13 @@ export const Teams: CollectionConfig = {
type: "text",
required: true,
},
{
name: "slug",
type: "text",
hooks: {
beforeValidate: [formatSlug("name")],
},
},
{
name: "role",
type: "text",

View File

@ -319,6 +319,7 @@ export interface Page {
export interface Team {
id: number;
name: string;
slug?: string | null;
role: string;
img: number | Media;
biography?: {
@ -762,6 +763,7 @@ export interface PagesSelect<T extends boolean = true> {
*/
export interface TeamsSelect<T extends boolean = true> {
name?: T;
slug?: T;
role?: T;
img?: T;
biography?: T;