diff --git a/frontend/src/Components/ProjectListAdmin.tsx b/frontend/src/Components/ProjectListAdmin.tsx index 9c98855..6461dae 100644 --- a/frontend/src/Components/ProjectListAdmin.tsx +++ b/frontend/src/Components/ProjectListAdmin.tsx @@ -22,10 +22,12 @@ export function ProjectListAdmin(props: { const [projectName, setProjectName] = useState(""); const [userModalVisible, setUserModalVisible] = useState(false); const [username, setUsername] = useState(""); + const [userRole, setUserRole] = useState(""); const [search, setSearch] = useState(""); - const handleClickUser = (username: string): void => { + const handleClickUser = (username: string, userRole: string): void => { setUsername(username); + setUserRole(userRole); setUserModalVisible(true); }; @@ -41,6 +43,7 @@ export function ProjectListAdmin(props: { const handleCloseUser = (): void => { setUsername(""); + setUserRole(""); setUserModalVisible(false); }; @@ -59,6 +62,7 @@ export function ProjectListAdmin(props: { onClose={handleCloseUser} username={username} projectName={projectName} + role={userRole} /> )}
@@ -70,7 +74,7 @@ export function ProjectListAdmin(props: { setSearch(e.target.value); }} /> -