File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
1
import Section from "@/components/sections/communities/_partials/Section" ;
2
2
import Header from "@/components/sections/communities/_partials/Header" ;
3
- import ObjectiveList from "@/components/list/Objectives" ;
4
3
import { useSelector } from "@/hooks/useTypedSelector" ;
5
4
import { useTranslation } from "next-i18next" ;
6
5
import { ReactElement } from "react" ;
@@ -19,9 +18,7 @@ export default function ChallengeHeader(): ReactElement {
19
18
return (
20
19
< div >
21
20
< 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 } />
25
22
</ div >
26
23
) ;
27
24
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ interface SectionProps {
15
15
id ?: string ;
16
16
className ?: string ;
17
17
hideSubtitleOnMobile ?: boolean ;
18
- children : ReactNode ;
18
+ children ? : ReactNode ;
19
19
}
20
20
21
21
/**
You can’t perform that action at this time.
0 commit comments