Skip to content

Commit

Permalink
Use image field
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Sep 13, 2023
1 parent fce534c commit 5a76be6
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions apps/codeforafrica/src/payload/collections/Partners.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import image from "../fields/image";
import richText from "../fields/richText";
import slug from "../fields/slug";
import socialLinks from "../fields/socialLinks";
Expand Down Expand Up @@ -38,20 +39,12 @@ const Partners = {
localized: true,
},
slug({ fieldToUse: "name" }),
{
name: "logo",
required: true,
type: "upload",
relationTo: "media",
label: {
en: "Logo",
pt: "Imagem",
fr: "Image",
image({
overrides: {
name: "logo",
required: true,
},
filterOptions: {
mimeType: { contains: "image" },
},
},
}),
richText({
name: "description",
label: {
Expand Down

0 comments on commit 5a76be6

Please sign in to comment.