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 Button from "./Button";
|
||||||
import { UserProjectMember } from "../Types/goTypes";
|
import { UserProjectMember } from "../Types/goTypes";
|
||||||
import GetUsersInProject from "./GetUsersInProject";
|
import GetUsersInProject from "./GetUsersInProject";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
function ProjectInfoModal(props: {
|
function ProjectInfoModal(props: {
|
||||||
isVisible: boolean;
|
isVisible: boolean;
|
||||||
|
@ -50,6 +51,16 @@ function ProjectInfoModal(props: {
|
||||||
}}
|
}}
|
||||||
type="button"
|
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
|
<Button
|
||||||
text={"Close"}
|
text={"Close"}
|
||||||
onClick={function (): void {
|
onClick={function (): void {
|
||||||
|
|
Loading…
Reference in a new issue