fix(client): show upcoming curriculum on maps (#51426)

This commit is contained in:
Tom
2023-09-06 14:05:31 -05:00
committed by GitHub
parent c9be971e5a
commit 19b0c09d60
2 changed files with 14 additions and 0 deletions
@@ -119,6 +119,7 @@
"core-certs-heading": "Earn free verified certifications with freeCodeCamp's core curriculum:",
"professional-certs-heading": "Earn free professional certifications:",
"interview-prep-heading": "Prepare for the developer interview job search:",
"upcoming-heading": "Upcoming curriculum:",
"faq": "Frequently asked questions:",
"faqs": [
{
+13
View File
@@ -115,6 +115,19 @@ function Map({ forLanding = false }: MapProps): React.ReactElement {
<MapLi key={i} superBlock={superBlock} landing={forLanding} />
))}
</ul>
{showUpcomingChanges && (
<>
<Spacer size='medium' />
<h1 className={forLanding ? 'big-heading' : ''}>
{t('landing.upcoming-heading')}
</h1>
<ul>
{superBlockOrder[SuperBlockStages.Upcoming].map((superBlock, i) => (
<MapLi key={i} superBlock={superBlock} landing={forLanding} />
))}
</ul>
</>
)}
</div>
);
}