fix(client): new chapter icons for v9 certs (#63587)

This commit is contained in:
Tom
2025-11-06 05:02:32 -06:00
committed by GitHub
parent 5c4812dcf4
commit 4473258189
2 changed files with 29 additions and 6 deletions

View File

@@ -20,7 +20,16 @@ const iconMap = {
[FsdChapters.RelationalDatabases]: DatabaseIcon,
[FsdChapters.BackendJavascript]: NodeIcon,
[FsdChapters.Python]: Python,
[FsdChapters.Career]: Graduation
[FsdChapters.Career]: Graduation,
[FsdChapters.RwdExam]: Graduation,
[FsdChapters.JsExam]: Graduation,
[FsdChapters.Fed]: ReactIcon,
[FsdChapters.FedExam]: Graduation,
[FsdChapters.PythonExam]: Graduation,
[FsdChapters.RdbExam]: Graduation,
[FsdChapters.Bed]: NodeIcon,
[FsdChapters.BedExam]: Graduation,
[FsdChapters.FsdExam]: Graduation
};
type ChapterIconProps = {

View File

@@ -2,15 +2,29 @@ import type { Module } from './modules';
// TODO: Dynamically create these from intro.json or full-stack.json
export enum FsdChapters {
// original FSD
Welcome = 'freecodecamp',
Html = 'html',
Css = 'css',
Javascript = 'javascript',
FrontendLibraries = 'frontend-libraries',
Python = 'python',
RelationalDatabases = 'relational-databases',
BackendJavascript = 'backend-javascript',
Career = 'career'
Career = 'career',
// new FSD
RwdExam = 'responsive-web-design-certification-exam',
JsExam = 'javascript-certification-exam',
Fed = 'front-end-development-libraries',
FedExam = 'front-end-development-libraries-certification-exam',
PythonExam = 'python-certification-exam',
RdbExam = 'relational-databases-certification-exam',
Bed = 'back-end-development-and-apis',
BedExam = 'back-end-development-and-apis-certification-exam',
FsdExam = 'certified-full-stack-developer-exam',
// used in both
Html = 'html',
Css = 'css',
Python = 'python',
RelationalDatabases = 'relational-databases'
}
export interface Chapter {