diff --git a/packages/features/users/components/UserTable/UserTableActions.tsx b/packages/features/users/components/UserTable/UserTableActions.tsx index 2cc794c734..4056172d44 100644 --- a/packages/features/users/components/UserTable/UserTableActions.tsx +++ b/packages/features/users/components/UserTable/UserTableActions.tsx @@ -11,6 +11,7 @@ import { DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, + DropdownMenuPortal, DropdownItem, DropdownMenuSeparator, showToast, @@ -74,50 +75,125 @@ export function TableActions({ StartIcon="ellipsis" /> - - {permissionsForUser.canEdit && ( - - - dispatch({ - type: "EDIT_USER_SHEET", - payload: { - user, - showModal: true, - }, - }) - } - StartIcon="pencil"> - {t("edit")} - - - )} - {permissionsForUser.canImpersonate && ( - <> + + + {permissionsForUser.canEdit && ( dispatch({ - type: "SET_IMPERSONATE_ID", + type: "EDIT_USER_SHEET", payload: { user, showModal: true, }, }) } - StartIcon="lock"> - {t("impersonate")} + StartIcon="pencil"> + {t("edit")} + + + )} + {permissionsForUser.canImpersonate && ( + <> + + + dispatch({ + type: "SET_IMPERSONATE_ID", + payload: { + user, + showModal: true, + }, + }) + } + StartIcon="lock"> + {t("impersonate")} + + + + + )} + {permissionsForUser.canRemove && ( + + + dispatch({ + type: "SET_DELETE_ID", + payload: { + user, + showModal: true, + }, + }) + } + color="destructive" + StartIcon="user-x"> + {t("remove")} + + + )} + {permissionsForUser.canResendInvitation && ( + + { + resendInvitationMutation.mutate({ + teamId: orgId, + language: i18n.language, + email: user.email, + isOrg: true, + }); + }} + StartIcon="send"> + {t("resend_invitation")} + + + )} + + + + )} + +
+ + +