From 5aa03d0dc9a741cffbadcf1ec32530275f98daad Mon Sep 17 00:00:00 2001 From: Kipruto <43873157+kelvinkipruto@users.noreply.github.com> Date: Wed, 20 Sep 2023 14:13:54 +0300 Subject: [PATCH] Use linkGroup --- apps/codeforafrica/src/payload/blocks/JoinOurSlack.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/codeforafrica/src/payload/blocks/JoinOurSlack.js b/apps/codeforafrica/src/payload/blocks/JoinOurSlack.js index 2037bfe8a..7bddbad80 100644 --- a/apps/codeforafrica/src/payload/blocks/JoinOurSlack.js +++ b/apps/codeforafrica/src/payload/blocks/JoinOurSlack.js @@ -1,4 +1,4 @@ -import link from "../fields/links/link"; +import linkGroup from "../fields/links/linkGroup"; const JoinOurSlack = { slug: "join-our-slack", @@ -17,12 +17,7 @@ const JoinOurSlack = { required: true, type: "text", }, - { - name: "action", - label: "Action", - type: "group", - fields: [link()], - }, + linkGroup({ overrides: { name: "action", label: "Action" } }), ], };