From 3d6c17a956812c9466a9a663d954f97a7649a16e Mon Sep 17 00:00:00 2001 From: Kipruto <43873157+kelvinkipruto@users.noreply.github.com> Date: Wed, 20 Sep 2023 14:08:45 +0300 Subject: [PATCH] Use linkGroup --- apps/codeforafrica/src/payload/blocks/MeetOurTeam.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/codeforafrica/src/payload/blocks/MeetOurTeam.js b/apps/codeforafrica/src/payload/blocks/MeetOurTeam.js index 7760f9fd8..40af98c82 100644 --- a/apps/codeforafrica/src/payload/blocks/MeetOurTeam.js +++ b/apps/codeforafrica/src/payload/blocks/MeetOurTeam.js @@ -1,5 +1,5 @@ import image from "../fields/image"; -import link from "../fields/links/link"; +import linkGroup from "../fields/links/linkGroup"; import richText from "../fields/richText"; const MeetOurTeam = { @@ -18,12 +18,7 @@ const MeetOurTeam = { label: "Description", required: true, }), - { - name: "action", - label: "Action Button", - type: "group", - fields: [link()], - }, + linkGroup({ overrides: { name: "action", label: "Action" } }), image({ overrides: { required: true,