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) => (