diff --git a/apps/codeforafrica/src/lib/data/blockify/meetOurTeam.js b/apps/codeforafrica/src/lib/data/blockify/meetOurTeam.js index abfbfaca5..515138ff5 100644 --- a/apps/codeforafrica/src/lib/data/blockify/meetOurTeam.js +++ b/apps/codeforafrica/src/lib/data/blockify/meetOurTeam.js @@ -1,17 +1,12 @@ -import { - actionFromActionButton, - imageFromMedia, -} from "@/codeforafrica/lib/data/utils"; +import { imageFromMedia } from "@/codeforafrica/lib/data/utils"; function meetOurTeam(block) { const { image: media, actionButton, title, ...other } = block; const image = imageFromMedia({ alt: title, ...media }); - const action = actionFromActionButton({ ...actionButton }); return { ...other, image, - action, slug: "meet-our-team", title, }; diff --git a/apps/codeforafrica/src/lib/data/utils/index.js b/apps/codeforafrica/src/lib/data/utils/index.js index dec6d4775..28917e671 100644 --- a/apps/codeforafrica/src/lib/data/utils/index.js +++ b/apps/codeforafrica/src/lib/data/utils/index.js @@ -2,8 +2,4 @@ export function imageFromMedia({ alt = null, url = null }) { return { alt, src: url }; } -export function actionFromActionButton({ href, label, newTab = false }) { - return { href, label, newTab }; -} - export default undefined; diff --git a/apps/codeforafrica/src/payload/blocks/MeetOurTeam.js b/apps/codeforafrica/src/payload/blocks/MeetOurTeam.js index 2d7cef9aa..76fa1b1e4 100644 --- a/apps/codeforafrica/src/payload/blocks/MeetOurTeam.js +++ b/apps/codeforafrica/src/payload/blocks/MeetOurTeam.js @@ -19,7 +19,7 @@ const MeetOurTeam = { required: true, }), { - name: "actionButton", + name: "action", label: "Action Button", type: "group", fields: [