feat: confirm project delete by typing
refractor: organised imports, changed create-project-model filename to kabab-case, and made modal more bug free
This commit is contained in:
parent
fe7284b9b0
commit
74a27edb09
3 changed files with 96 additions and 38 deletions
|
|
@ -28,7 +28,7 @@ type Props = {
|
|||
slug: string;
|
||||
invitationsRespond: string[];
|
||||
handleInvitation: (project_invitation: any, action: "accepted" | "withdraw") => void;
|
||||
setDeleteProject: React.Dispatch<React.SetStateAction<IProject | undefined>>;
|
||||
setDeleteProject: (id: string | null) => void;
|
||||
};
|
||||
|
||||
const ProjectMemberInvitations: React.FC<Props> = ({
|
||||
|
|
@ -100,7 +100,7 @@ const ProjectMemberInvitations: React.FC<Props> = ({
|
|||
<button
|
||||
type="button"
|
||||
className="h-7 w-7 p-1 grid place-items-center rounded hover:bg-gray-200 duration-300 outline-none"
|
||||
onClick={() => setDeleteProject(project)}
|
||||
onClick={() => setDeleteProject(project.id)}
|
||||
>
|
||||
<TrashIcon className="h-4 w-4 text-red-500" />
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue