refactor(client): use shared Module interface (#60082)

This commit is contained in:
Huyen Nguyen
2025-05-01 02:52:10 +07:00
committed by GitHub
parent 6a61bbf4de
commit 46c20ab6f6

View File

@@ -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
);