From cd5f0c217cfc157f05d122136e8880bc437c8a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stef=20Oss=C3=A9?= Date: Thu, 23 May 2024 15:21:03 +0200 Subject: [PATCH] small change --- .../components/ProjectTeacherComponent.tsx | 39 +++++++++---------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/frontend/src/components/ProjectTeacherComponent.tsx b/frontend/src/components/ProjectTeacherComponent.tsx index 0222b3a2..bbf9d73b 100644 --- a/frontend/src/components/ProjectTeacherComponent.tsx +++ b/frontend/src/components/ProjectTeacherComponent.tsx @@ -175,7 +175,7 @@ export function ProjectTeacherComponent(props: { if (props.project.projectId == -1) { // Create new project const new_project: Project = await course_create_project(course.course_id, projectInput) - for (let i= 0; i < groups; i += 1){ + for (let i = 0; i < groups; i += 1) { void project_create_group(new_project.project_id) } @@ -459,8 +459,7 @@ export function ProjectTeacherComponent(props: { }} /> - - } + } {!showGroup && <>
@@ -479,30 +478,30 @@ export function ProjectTeacherComponent(props: { }} />
- - } + } } {props.project.projectId !== -1 &&
- {!showGroup &&
- -
} - - {showGroup &&
- - -
} + {showGroup + ?
+ + +
+ :
+ +
}
- {!showGroup &&
- -
} + {showGroup + ?
+ + +
+ :
+ +
} - {showGroup &&
- - -
}
}