Skip to content

Commit

Permalink
Add default columns
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Sep 26, 2023
1 parent 7afbbbd commit 85034be
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Binary file modified apps/codeforafrica/public/images/cms/blocks/team.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions apps/codeforafrica/src/payload/blocks/OurTeam.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ const OurTeam = {
imageAltText: "Our Team",
labels: {
singular: {
en: "Our Team",
en: "Team",
},
plural: {
en: "Our Team",
en: "Team",
},
},
fields: [
Expand Down
2 changes: 2 additions & 0 deletions apps/codeforafrica/src/payload/collections/Members.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const Members = {
},
admin: {
useAsTitle: "name",
defaultColumns: ["name", "title", "country"],
},
fields: [
image({
Expand Down Expand Up @@ -69,6 +70,7 @@ const Members = {
},
type: "relationship",
relationTo: "teams",
required: true,
},
],
hooks: {
Expand Down
1 change: 1 addition & 0 deletions apps/codeforafrica/src/payload/collections/Teams.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const Teams = {
slug: "teams",
admin: {
useAsTitle: "name",
defaultColumns: ["name"],
},
access: {
read: () => true,
Expand Down

0 comments on commit 85034be

Please sign in to comment.