feat(settings): add member removal and pending invitations to unified members tab

This commit is contained in:
Usman Baig
2026-03-25 18:08:22 +01:00
parent b64c4c036f
commit 8bef4b7c9f
2 changed files with 67 additions and 8 deletions

View File

@@ -79,6 +79,13 @@ export async function getOrganizationMembers(organizationId: string): Promise<Or
return data.members || []
}
// Remove a member from the organization
export async function removeOrganizationMember(organizationId: string, userId: string): Promise<void> {
await authFetch(`/auth/organizations/${organizationId}/members/${userId}`, {
method: 'DELETE',
})
}
// Send an invitation
export async function sendInvitation(
organizationId: string,