Add member functionality added
This commit is contained in:
parent
c5bc6c1c58
commit
b2db9c54ca
1 changed files with 11 additions and 0 deletions
|
@ -2,6 +2,7 @@ import { useState } from "react";
|
|||
import Button from "./Button";
|
||||
import { UserProjectMember } from "../Types/goTypes";
|
||||
import GetUsersInProject from "./GetUsersInProject";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
function ProjectInfoModal(props: {
|
||||
isVisible: boolean;
|
||||
|
@ -50,6 +51,16 @@ function ProjectInfoModal(props: {
|
|||
}}
|
||||
type="button"
|
||||
/>
|
||||
<Link to={"/addUserToProject"}>
|
||||
<Button
|
||||
text={"Add Member"}
|
||||
onClick={function (): void {
|
||||
// Might wanna change this later
|
||||
localStorage.setItem("projectName", props.projectname);
|
||||
}}
|
||||
type="button"
|
||||
/>
|
||||
</Link>
|
||||
<Button
|
||||
text={"Close"}
|
||||
onClick={function (): void {
|
||||
|
|
Loading…
Reference in a new issue