diff --git a/apps/codeforafrica/public/images/cms/blocks/team_infographic.jpg b/apps/codeforafrica/public/images/cms/blocks/meet_our_team.jpg similarity index 100% rename from apps/codeforafrica/public/images/cms/blocks/team_infographic.jpg rename to apps/codeforafrica/public/images/cms/blocks/meet_our_team.jpg diff --git a/apps/codeforafrica/src/lib/data/rest/index.js b/apps/codeforafrica/src/lib/data/rest/index.js index b74fd48d6..80c11bb13 100644 --- a/apps/codeforafrica/src/lib/data/rest/index.js +++ b/apps/codeforafrica/src/lib/data/rest/index.js @@ -37,6 +37,6 @@ export const api = { export async function getPageStaticProps(context) { const props = await getPageProps(api, context); return { - props: props || {}, + props, }; } diff --git a/apps/codeforafrica/src/payload/blocks/MeetOurTeam.js b/apps/codeforafrica/src/payload/blocks/MeetOurTeam.js index 76fa1b1e4..cc859bd77 100644 --- a/apps/codeforafrica/src/payload/blocks/MeetOurTeam.js +++ b/apps/codeforafrica/src/payload/blocks/MeetOurTeam.js @@ -4,7 +4,7 @@ import richText from "../fields/richText"; const MeetOurTeam = { slug: "meet-our-team", - imageURL: "/images/cms/blocks/team_infographic.jpg", + imageURL: "/images/cms/blocks/meet_our_team.jpg", imageAltText: "Display Team Call to Action", fields: [ { @@ -22,15 +22,7 @@ const MeetOurTeam = { name: "action", label: "Action Button", type: "group", - fields: [ - { - name: "label", - label: "Label", - type: "text", - required: true, - }, - link({}), - ], + fields: [link({})], }, image({ overrides: {