diff --git a/apps/codeforafrica/src/lib/data/blockify/get-involved.js b/apps/codeforafrica/src/lib/data/blockify/get-involved.js index 22ff8996e..46ea5c310 100644 --- a/apps/codeforafrica/src/lib/data/blockify/get-involved.js +++ b/apps/codeforafrica/src/lib/data/blockify/get-involved.js @@ -1,4 +1,4 @@ -import { formatImpacts } from "./our-impact"; +import formatImpacts from "@/codeforafrica/lib/data/utils/impacts"; function getInvolved(block) { const { impacts, ...other } = block; diff --git a/apps/codeforafrica/src/lib/data/blockify/our-impact.js b/apps/codeforafrica/src/lib/data/blockify/our-impact.js index 2a4689191..98a2f5133 100644 --- a/apps/codeforafrica/src/lib/data/blockify/our-impact.js +++ b/apps/codeforafrica/src/lib/data/blockify/our-impact.js @@ -1,16 +1,4 @@ -import { imageFromMedia } from "@/codeforafrica/lib/data/utils"; - -export function formatImpacts(impacts) { - return impacts.map((impact) => { - const { icon: media, title, ...rest } = impact; - const image = imageFromMedia({ alt: title, ...media }); - return { - ...rest, - image, - title, - }; - }); -} +import formatImpacts from "@/codeforafrica/lib/data/utils/impacts"; function ourImpact(block) { const { impacts, ...other } = block; diff --git a/apps/codeforafrica/src/lib/data/utils/impacts.js b/apps/codeforafrica/src/lib/data/utils/impacts.js new file mode 100644 index 000000000..08357c4e1 --- /dev/null +++ b/apps/codeforafrica/src/lib/data/utils/impacts.js @@ -0,0 +1,13 @@ +import { imageFromMedia } from "@/codeforafrica/lib/data/utils"; + +export default function formatImpacts(impacts) { + return impacts.map((impact) => { + const { icon: media, title, ...rest } = impact; + const image = imageFromMedia({ alt: title, ...media }); + return { + ...rest, + image, + title, + }; + }); +} diff --git a/apps/codeforafrica/src/payload/blocks/GetInvolved.js b/apps/codeforafrica/src/payload/blocks/GetInvolved.js index 0657ce3b0..28fb24395 100644 --- a/apps/codeforafrica/src/payload/blocks/GetInvolved.js +++ b/apps/codeforafrica/src/payload/blocks/GetInvolved.js @@ -4,7 +4,7 @@ import linkGroup from "../fields/links/linkGroup"; const GetInvolved = { slug: "get-involved", imageURL: "/images/cms/blocks/get_involved.jpg", - imageAltText: "Our Impact Statisctics", + imageAltText: "Get Involved", fields: [ impacts({ minRows: 3,