diff --git a/frontend/src/components/mapMenu/MapMenu.tsx b/frontend/src/components/mapMenu/MapMenu.tsx index 44daec1..0c8031c 100644 --- a/frontend/src/components/mapMenu/MapMenu.tsx +++ b/frontend/src/components/mapMenu/MapMenu.tsx @@ -21,7 +21,6 @@ const MapMenu: React.FC = observer(() => { mapMenuStore.fetchModules().then(() => { mapMenuStore.fetchModuleById(mapMenuStore.availableModules[0].id).then(() => { mapMenuStore.fetchLevels().then(() => { - console.log(mapMenuStore.availableLevels) }) }) }) @@ -37,8 +36,9 @@ const MapMenu: React.FC = observer(() => {
- {mapMenuStore.availableLevels.map((level, index) => - ) + {mapMenuStore.availableLevels.map((level, index) => { + return + }) }
diff --git a/frontend/src/components/mapMenu/UIMapMenu/Level/ModalLevelBody.tsx b/frontend/src/components/mapMenu/UIMapMenu/Level/ModalLevelBody.tsx index 4cdcadd..1be653d 100644 --- a/frontend/src/components/mapMenu/UIMapMenu/Level/ModalLevelBody.tsx +++ b/frontend/src/components/mapMenu/UIMapMenu/Level/ModalLevelBody.tsx @@ -2,20 +2,33 @@ import React, {useState} from 'react'; import "./modalLevelBody.scss" import ArrowLeft from "../UIChooseModule/ArrowLeft.tsx"; import ArrowRight from "../UIChooseModule/ArrowRight.tsx"; +import {ITheoryUnitType} from "../../../../types/TheoryUnitType.ts"; interface IModalLevelProps { - id: string, - title: string + title: string, + theoryUnits?: ITheoryUnitType[] } -const ModalLevelBody: React.FC = ({title}) => { - // const tasks = [ - // {name: "theory", element: }, - // {name: "video", element: