mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 14:27:30 +00:00
Fix type issue frontend
This commit is contained in:
+11
-2
@@ -4,7 +4,12 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|||||||
import { createNotification } from "@app/components/notifications";
|
import { createNotification } from "@app/components/notifications";
|
||||||
import { ProjectPermissionCan } from "@app/components/permissions";
|
import { ProjectPermissionCan } from "@app/components/permissions";
|
||||||
import { Button, DeleteActionModal, UpgradePlanModal } from "@app/components/v2";
|
import { Button, DeleteActionModal, UpgradePlanModal } from "@app/components/v2";
|
||||||
import { ProjectPermissionActions, ProjectPermissionSub , useOrganization, useWorkspace } from "@app/context";
|
import {
|
||||||
|
ProjectPermissionActions,
|
||||||
|
ProjectPermissionSub,
|
||||||
|
useOrganization,
|
||||||
|
useWorkspace
|
||||||
|
} from "@app/context";
|
||||||
import { usePopUp } from "@app/hooks";
|
import { usePopUp } from "@app/hooks";
|
||||||
import { useDeleteUserFromWorkspace } from "@app/hooks/api";
|
import { useDeleteUserFromWorkspace } from "@app/hooks/api";
|
||||||
|
|
||||||
@@ -30,7 +35,11 @@ export const MembersSection = () => {
|
|||||||
if (!currentWorkspace?.id) return;
|
if (!currentWorkspace?.id) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await removeUserFromWorkspace({ workspaceId: currentWorkspace.id, usernames: [username] });
|
await removeUserFromWorkspace({
|
||||||
|
workspaceId: currentWorkspace.id,
|
||||||
|
usernames: [username],
|
||||||
|
orgId: currentOrg.id
|
||||||
|
});
|
||||||
createNotification({
|
createNotification({
|
||||||
text: "Successfully removed user from project",
|
text: "Successfully removed user from project",
|
||||||
type: "success"
|
type: "success"
|
||||||
|
|||||||
Reference in New Issue
Block a user