From f4db8626c0d12770597ddff5856d3144d4cf67a8 Mon Sep 17 00:00:00 2001 From: Tiebe Vercoutter Date: Sat, 21 May 2022 09:57:33 +0200 Subject: [PATCH] prettier --- .../CreateProjectComponents/InputFields/Skill/Skill.tsx | 1 - frontend/src/data/interfaces/projects.ts | 7 ++----- .../projectViews/ProjectDetailPage/ProjectDetailPage.tsx | 1 - 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/ProjectsComponents/CreateProjectComponents/InputFields/Skill/Skill.tsx b/frontend/src/components/ProjectsComponents/CreateProjectComponents/InputFields/Skill/Skill.tsx index 650566b60..a6cbf759c 100644 --- a/frontend/src/components/ProjectsComponents/CreateProjectComponents/InputFields/Skill/Skill.tsx +++ b/frontend/src/components/ProjectsComponents/CreateProjectComponents/InputFields/Skill/Skill.tsx @@ -22,7 +22,6 @@ export default function SkillInput({ setAvailableSkills((await getSkills())?.skills || []); } callSkills(); - }, []); return ( diff --git a/frontend/src/data/interfaces/projects.ts b/frontend/src/data/interfaces/projects.ts index c1fc2ca83..90815823a 100644 --- a/frontend/src/data/interfaces/projects.ts +++ b/frontend/src/data/interfaces/projects.ts @@ -51,10 +51,10 @@ export interface AddRoleSuggestion { export interface AddStudentRole { /** The Id of the project role where to add the student */ projectRoleId: string; - + /** The Id of the student to add */ studentId: string; - + /** Can be used to switch the role of a student */ switchProjectRoleId: string | undefined; } @@ -104,7 +104,6 @@ export interface Project { /** The roles of this project */ projectRoles: ProjectRole[]; - } /** @@ -156,5 +155,3 @@ export interface CreateProjectRole { /** Number of positions of this skill in a project */ slots: number; } - - diff --git a/frontend/src/views/projectViews/ProjectDetailPage/ProjectDetailPage.tsx b/frontend/src/views/projectViews/ProjectDetailPage/ProjectDetailPage.tsx index ef3172c2b..bbdaad831 100644 --- a/frontend/src/views/projectViews/ProjectDetailPage/ProjectDetailPage.tsx +++ b/frontend/src/views/projectViews/ProjectDetailPage/ProjectDetailPage.tsx @@ -66,7 +66,6 @@ export default function ProjectDetailPage() { }); setStudentAmount(countStudents); setAssignedAmount(countAssigned); - } else navigate("/404-not-found"); } }