Skip to content

Commit 0fbd259

Browse files
committed
🐛 Merged with main files
1 parent ddf496b commit 0fbd259

2 files changed

Lines changed: 0 additions & 100 deletions

File tree

src/payload/globals/execspage/ExecsPageGlobal.ts

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -28,74 +28,6 @@ export const ExecsPageGlobal: GlobalConfig = {
2828
placeholder: "Please type the page's description here.",
2929
},
3030
},
31-
{
32-
//maybe execs could be a collection and this could reference that collection instead.
33-
name: "teams",
34-
type: "array",
35-
required: true,
36-
fields: [
37-
{
38-
name: "teamName",
39-
type: "text",
40-
required: true,
41-
admin: {
42-
placeholder: "Please type the team's name here.",
43-
},
44-
},
45-
{
46-
name: "teamDescription",
47-
type: "textarea",
48-
required: true,
49-
admin: {
50-
placeholder: "Please type the team's description here.",
51-
},
52-
},
53-
{
54-
name: "execs",
55-
type: "array",
56-
fields: [
57-
{
58-
name: "name",
59-
type: "text",
60-
required: true,
61-
admin: {
62-
placeholder: "Please type the exec's name here.",
63-
},
64-
},
65-
{
66-
name: "role",
67-
type: "text",
68-
required: true,
69-
admin: {
70-
placeholder: "Please type the exec's role here. e.g Tech Director",
71-
},
72-
},
73-
{
74-
name: "image",
75-
type: "upload",
76-
relationTo: "media",
77-
},
78-
{
79-
name: "description",
80-
type: "textarea",
81-
required: true,
82-
admin: {
83-
placeholder:
84-
"Please type the exec's description here. e.g BE(Hons) - Software Engineering The University of Auckland",
85-
},
86-
},
87-
{
88-
name: "joined",
89-
type: "text",
90-
required: true,
91-
admin: {
92-
placeholder: "Please type the exec's join date here. In the format Joined Jan 2023",
93-
},
94-
},
95-
],
96-
},
97-
],
98-
},
9931
],
10032
};
10133

src/payload/payload-types.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -643,21 +643,6 @@ export interface ExecsPage {
643643
id: number;
644644
title: string;
645645
description: string;
646-
teams: {
647-
teamName: string;
648-
teamDescription: string;
649-
execs?:
650-
| {
651-
name: string;
652-
role: string;
653-
image?: (number | null) | Media;
654-
description: string;
655-
joined: string;
656-
id?: string | null;
657-
}[]
658-
| null;
659-
id?: string | null;
660-
}[];
661646
updatedAt?: string | null;
662647
createdAt?: string | null;
663648
}
@@ -824,23 +809,6 @@ export interface HeroPage {
824809
export interface ExecsPageSelect<T extends boolean = true> {
825810
title?: T;
826811
description?: T;
827-
teams?:
828-
| T
829-
| {
830-
teamName?: T;
831-
teamDescription?: T;
832-
execs?:
833-
| T
834-
| {
835-
name?: T;
836-
role?: T;
837-
image?: T;
838-
description?: T;
839-
joined?: T;
840-
id?: T;
841-
};
842-
id?: T;
843-
};
844812
updatedAt?: T;
845813
createdAt?: T;
846814
globalType?: T;

0 commit comments

Comments
 (0)