From d7486041c5c4e4e2034fc411457edaf92febc1aa Mon Sep 17 00:00:00 2001 From: mihail323i21 Date: Mon, 20 Nov 2023 01:53:09 +0500 Subject: [PATCH] =?UTF-8?q?=D1=87=D0=B8=D0=BD=D0=B8=D1=82=20=D1=84=D1=80?= =?UTF-8?q?=D0=BE=D0=BD=D1=82=20=D0=B4=D0=BB=D1=8F=20=D1=83=D1=81=D0=BF?= =?UTF-8?q?=D0=B5=D1=88=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=B1=D0=B8=D0=BB=D0=B4?= =?UTF-8?q?=D0=B0,=20=D1=84=D0=B8=D0=BA=D1=81=D0=B8=D1=82=20=D0=B4=D0=B0?= =?UTF-8?q?=D0=B1=D0=BB=20=D0=BA=D0=BB=D0=B8=D0=BA=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B8=D0=B7=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../authentication/Authentication.tsx | 4 +- frontend/src/components/mapMenu/MapMenu.tsx | 2 +- .../UIMapMenu/Level/ModalLevelBody.tsx | 150 ++++++++++-------- .../mapMenu/UIMapMenu/Level/Module.tsx | 6 +- frontend/src/store/authStore.ts | 2 +- 5 files changed, 87 insertions(+), 77 deletions(-) diff --git a/frontend/src/components/authentication/Authentication.tsx b/frontend/src/components/authentication/Authentication.tsx index 03c4791..0ea63c8 100644 --- a/frontend/src/components/authentication/Authentication.tsx +++ b/frontend/src/components/authentication/Authentication.tsx @@ -15,6 +15,7 @@ const Authentication: React.FC = observer(() => { setIsPasswordShow(!isPasswordShows) } + return (
@@ -42,8 +43,7 @@ const Authentication: React.FC = observer(() => { additionalClassName="is-remember-password__checkbox" handleOnChange={changeShowPassword}/> { - authStore.signIn().then() - navigateTo('/map') + authStore.signIn().then(() => navigateTo('/map')) }}/> {/* authStore.signUp()}/>*/} diff --git a/frontend/src/components/mapMenu/MapMenu.tsx b/frontend/src/components/mapMenu/MapMenu.tsx index 84462cc..bde6761 100644 --- a/frontend/src/components/mapMenu/MapMenu.tsx +++ b/frontend/src/components/mapMenu/MapMenu.tsx @@ -33,7 +33,7 @@ const MapMenu: React.FC = observer(() => {
{mapMenuStore.currentModule?.levels_ids.map((level, index) => - )} + )}
diff --git a/frontend/src/components/mapMenu/UIMapMenu/Level/ModalLevelBody.tsx b/frontend/src/components/mapMenu/UIMapMenu/Level/ModalLevelBody.tsx index 2ae654e..d7e79ea 100644 --- a/frontend/src/components/mapMenu/UIMapMenu/Level/ModalLevelBody.tsx +++ b/frontend/src/components/mapMenu/UIMapMenu/Level/ModalLevelBody.tsx @@ -2,14 +2,14 @@ import React, {useState} from 'react'; import "./modalLevelBody.scss" import ArrowLeft from "../UIChooseModule/ArrowLeft.tsx"; import ArrowRight from "../UIChooseModule/ArrowRight.tsx"; -import {LevelType} from "../../../../types/LevelType.ts"; +import {ILevelType} from "../../../../types/LevelType.ts"; -const ModalLevelBody: React.FC = ({levelName, title, menu}) => { - const tasks = [ - {name: "theory", element: }, - {name: "video", element: