diff --git a/frontend/src/Components/MemberInfoModal.tsx b/frontend/src/Components/MemberInfoModal.tsx new file mode 100644 index 0000000..e68f52a --- /dev/null +++ b/frontend/src/Components/MemberInfoModal.tsx @@ -0,0 +1,77 @@ +import Button from "./Button"; +import DeleteUser from "./DeleteUser"; +import UserProjectListAdmin from "./UserProjectListAdmin"; +import { useState } from "react"; +import ChangeRoleView from "./ChangeRoleView"; + +function MemberInfoModal(props: { + isVisible: boolean; + username: string; + onClose: () => void; +}): JSX.Element { + const [showRoles, setShowRoles] = useState(false); + if (!props.isVisible) return <>; + + const handleChangeRole = (): void => { + if (showRoles) { + setShowRoles(false); + } else { + setShowRoles(true); + } + }; + return ( +
+
+

{props.username}

+

+ (Change Role) +

+ {showRoles && ( + + )} +
+

+ Member of these projects: +

+
+ +
+
+
+
+
+
+ ); +} + +export default MemberInfoModal;