From 14133a9f22bc6f6b6364adfb6a6b2c3da74fe962 Mon Sep 17 00:00:00 2001 From: Mattias Date: Thu, 21 Mar 2024 09:59:12 +0100 Subject: [PATCH] CleanUp, making lint happy --- frontend/src/Components/ProjectMembers.tsx | 44 ++++------------------ 1 file changed, 7 insertions(+), 37 deletions(-) diff --git a/frontend/src/Components/ProjectMembers.tsx b/frontend/src/Components/ProjectMembers.tsx index 469382a..be485c3 100644 --- a/frontend/src/Components/ProjectMembers.tsx +++ b/frontend/src/Components/ProjectMembers.tsx @@ -17,49 +17,19 @@ function ProjectMembers(): JSX.Element { console.error(response.message); } }; - - // const mockProjectMembers = [ - // { - // username: "username1", - // role: "Project Manager", - // }, - // { - // username: "username2", - // role: "System Manager", - // }, - // { - // username: "username3", - // role: "Developer", - // }, - // { - // username: "username4", - // role: "Tester", - // }, - // { - // username: "username5", - // role: "Tester", - // }, - // { - // username: "username6", - // role: "Tester", - // }, - // ]; - - // const getProjectMembers = async (): Promise => { - // // Use the mock data - // setProjectMembers(mockProjectMembers); - - // await Promise.resolve(); - // }; - useEffect(() => { void getProjectMembers(); - }); + }, []); + + interface ProjectMember { + Username: string; + UserRole: string; + } return ( <>
- {projectMembers.map((projectMember, index) => ( + {projectMembers.map((projectMember: ProjectMember, index: number) => (