Skip to content

Commit

Permalink
Remove unused blocks and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinkipruto committed Sep 28, 2023
1 parent aa2ec52 commit 5a39db9
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 160 deletions.
4 changes: 0 additions & 4 deletions apps/codeforafrica/src/lib/data/blockify/index.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
import getInvolved from "./get-involved";
import hero from "./hero";
import meetOurTeam from "./meetOurTeam";
import opportunities from "./opportunities";
import ourImpact from "./our-impact";
import ourTeam from "./ourTeam";
import postList from "./postList";
import stories from "./stories";

const propsifyBlockBySlug = {
"get-involved": getInvolved,
hero,
"meet-our-team": meetOurTeam,
opportunities,
"our-impact": ourImpact,
"our-team": ourTeam,
"post-list": postList,
stories,
};

async function blockify(blocks, api, context) {
Expand Down
32 changes: 0 additions & 32 deletions apps/codeforafrica/src/lib/data/blockify/opportunities.js

This file was deleted.

51 changes: 0 additions & 51 deletions apps/codeforafrica/src/lib/data/blockify/stories.js

This file was deleted.

28 changes: 0 additions & 28 deletions apps/codeforafrica/src/payload/blocks/Opportunities.js

This file was deleted.

41 changes: 0 additions & 41 deletions apps/codeforafrica/src/payload/blocks/Stories.js

This file was deleted.

4 changes: 0 additions & 4 deletions apps/codeforafrica/src/payload/collections/Pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ import GuidingPrinciples from "../blocks/GuidingPrinciples";
import Hero from "../blocks/Hero";
import JoinOurSlack from "../blocks/JoinOurSlack";
import MeetOurTeam from "../blocks/MeetOurTeam";
import Opportunities from "../blocks/Opportunities";
import OurImpact from "../blocks/OurImpact";
import OurMission from "../blocks/OurMission";
import OurPartners from "../blocks/OurPartners";
import OurTeam from "../blocks/OurTeam";
import PageHeader from "../blocks/PageHeader";
import Posts from "../blocks/Posts";
import Stories from "../blocks/Stories";
import fullTitle from "../fields/fullTitle";
import slug from "../fields/slug";
import formatDraftUrl from "../utils/formatDraftUrl";
Expand Down Expand Up @@ -61,12 +59,10 @@ const Pages = {
PageHeader,
Posts,
CustomPageHeader,
Opportunities,
OurImpact,
OurMission,
OurPartners,
OurTeam,
Stories,
],
admin: {
initCollapsed: true,
Expand Down

0 comments on commit 5a39db9

Please sign in to comment.