Skip to content

Commit aa8a5f5

Browse files
authored
Merge pull request #964 from dacadeorg/fix/remove-challenge-prerequisite
fix: remove learning modules list in the challenge header
2 parents 23f19d8 + bbefe48 commit aa8a5f5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/components/sections/challenges/Header.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Section from "@/components/sections/communities/_partials/Section";
22
import Header from "@/components/sections/communities/_partials/Header";
3-
import ObjectiveList from "@/components/list/Objectives";
43
import { useSelector } from "@/hooks/useTypedSelector";
54
import { useTranslation } from "next-i18next";
65
import { ReactElement } from "react";
@@ -19,9 +18,7 @@ export default function ChallengeHeader(): ReactElement {
1918
return (
2019
<div>
2120
<Header isTeamChallenge={challenge?.isTeamChallenge} title={challenge?.name} subtitle={t("communities.challenge.title")} isHackathon={challenge?.isHackathon} />
22-
<Section subtitle={challenge?.description}>
23-
{challenge?.learningModules?.length ? <ObjectiveList objectives={challenge?.learningModules?.map((module) => module.title) || []} /> : <></>}
24-
</Section>
21+
<Section subtitle={challenge?.description} />
2522
</div>
2623
);
2724
}

src/components/sections/communities/_partials/Section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface SectionProps {
1515
id?: string;
1616
className?: string;
1717
hideSubtitleOnMobile?: boolean;
18-
children: ReactNode;
18+
children?: ReactNode;
1919
}
2020

2121
/**

0 commit comments

Comments
 (0)