diff --git a/frontend/src/Components/ProjectInfoModal.tsx b/frontend/src/Components/ProjectInfoModal.tsx index 210e309..b153e9c 100644 --- a/frontend/src/Components/ProjectInfoModal.tsx +++ b/frontend/src/Components/ProjectInfoModal.tsx @@ -3,10 +3,11 @@ import Button from "./Button"; import { UserProjectMember } from "../Types/goTypes"; import GetUsersInProject from "./GetUsersInProject"; -function UserInfoModal(props: { +function ProjectInfoModal(props: { isVisible: boolean; projectname: string; onClose: () => void; + onClick: (username: string) => void; }): JSX.Element { const [users, setUsers] = useState([]); GetUsersInProject({ projectName: props.projectname, setUsersProp: setUsers }); @@ -17,23 +18,31 @@ function UserInfoModal(props: { className="fixed inset-0 bg-black bg-opacity-30 backdrop-blur-sm flex justify-center items-center" > -
-

{props.projectname}

-
-

- Members of this project: -

-
-
    +
    +
    +

    Project members:

    +
    +
      +
      {users.map((user) => ( -
    • - {user.Username} +
    • { + props.onClick(user.Username); + }} + > + + Name: {user.Username} +
      + Role: {user.UserRole} +
    • ))}
    -
    +