mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-18 10:00:55 -04:00
refactor(client): use shared Module interface (#60082)
This commit is contained in:
@@ -11,6 +11,7 @@ import superBlockStructure from '../../../../../curriculum/superblock-structure/
|
||||
import { ChapterIcon } from '../../../assets/chapter-icon';
|
||||
import { BlockLayouts, BlockTypes } from '../../../../../shared/config/blocks';
|
||||
import { FsdChapters } from '../../../../../shared/config/chapters';
|
||||
import { type Module } from '../../../../../shared/config/modules';
|
||||
import envData from '../../../../config/env.json';
|
||||
import Block from './block';
|
||||
import CheckMark from './check-mark';
|
||||
@@ -54,15 +55,6 @@ interface SuperBlockAccordionPropsViewProps {
|
||||
completedChallengeIds: string[];
|
||||
}
|
||||
|
||||
type Module = {
|
||||
dashedName: string;
|
||||
comingSoon?: boolean;
|
||||
blocks: {
|
||||
dashedName: string;
|
||||
}[];
|
||||
moduleType?: string;
|
||||
};
|
||||
|
||||
const modules = superBlockStructure.chapters.flatMap<Module>(
|
||||
({ modules }) => modules
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user