Skip to content

Commit

Permalink
Join Our slack block update
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinkipruto committed Sep 20, 2023
1 parent 05b4752 commit 3cbaed3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
7 changes: 0 additions & 7 deletions apps/codeforafrica/src/lib/data/rest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ export const api = {

export async function getPageStaticProps(context) {
const props = await getPageProps(api, context);
if (!props) {
return {
props: {
title: "Page not found",
},
};
}
return {
props,
};
Expand Down
2 changes: 1 addition & 1 deletion apps/codeforafrica/src/pages/[...slugs].page.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import PageHeader from "@/codeforafrica/components/PageHeader";
import { getPageServerSideProps } from "@/codeforafrica/lib/data";

const componentsBySlugs = {
"get-involved": GetInvolved,
hero: Hero,
"join-our-slack": JoinOurSlack,
"page-header": PageHeader,
"custom-page-header": CustomPageHeader,
"meet-our-team": MeetOurTeam,
"news-stories": NewsAndStories,
"get-involved": GetInvolved,
"our-impact": OurImpact,
"our-partners": OurPartners,
projects: FeaturedProjects,
Expand Down
14 changes: 3 additions & 11 deletions apps/codeforafrica/src/payload/blocks/JoinOurSlack.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,15 @@ const JoinOurSlack = {
},
{
name: "subtitle",
label: "Sub Title",
label: "Subtitle",
required: true,
type: "text",
},
{
name: "action",
label: "Action Button",
label: "Action",
type: "group",
fields: [
{
name: "label",
label: "Label",
type: "text",
required: true,
},
link({}),
],
fields: [link()],
},
],
};
Expand Down

0 comments on commit 3cbaed3

Please sign in to comment.