diff --git a/frontend/src/Components/ProjectInfoModal.tsx b/frontend/src/Components/ProjectInfoModal.tsx
index 4d79cac..3075b19 100644
--- a/frontend/src/Components/ProjectInfoModal.tsx
+++ b/frontend/src/Components/ProjectInfoModal.tsx
@@ -19,9 +19,12 @@ function ProjectInfoModal(props: {
className="fixed inset-0 bg-black bg-opacity-30 backdrop-blur-sm
flex justify-center items-center"
>
-
+
-
Project members:
+
+ {localStorage.getItem("projectName") ?? ""}
+
+
Project members:
@@ -51,12 +54,11 @@ function ProjectInfoModal(props: {
}}
type="button"
/>
-
+
diff --git a/frontend/src/Components/ProjectListAdmin.tsx b/frontend/src/Components/ProjectListAdmin.tsx
index 4ebdaf8..f25ee47 100644
--- a/frontend/src/Components/ProjectListAdmin.tsx
+++ b/frontend/src/Components/ProjectListAdmin.tsx
@@ -2,7 +2,6 @@ import { useState } from "react";
import { NewProject } from "../Types/goTypes";
import ProjectInfoModal from "./ProjectInfoModal";
import UserInfoModal from "./UserInfoModal";
-import DeleteUser from "./DeleteUser";
/**
* A list of projects for admin manage projects page, that sets an onClick
@@ -28,8 +27,9 @@ export function ProjectListAdmin(props: {
setUserModalVisible(true);
};
- const handleClickProject = (username: string): void => {
- setProjectname(username);
+ const handleClickProject = (projectname: string): void => {
+ setProjectname(projectname);
+ localStorage.setItem("projectName", projectname);
setProjectModalVisible(true);
};
@@ -55,7 +55,9 @@ export function ProjectListAdmin(props: {
manageMember={true}
onClose={handleCloseUser}
//TODO: CHANGE TO REMOVE USER FROM PROJECT
- onDelete={() => DeleteUser}
+ onDelete={() => {
+ return;
+ }}
isVisible={userModalVisible}
username={username}
/>