From 5b519151e85b24bedbe59d53dc9fb55a6558307a Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 10 May 2025 20:40:11 -0600 Subject: [PATCH] refactor: streamline Remove Invitation dropdown menu item in ShowInvitations component --- .../settings/users/show-invitations.tsx | 29 +++++++++---------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/apps/dokploy/components/dashboard/settings/users/show-invitations.tsx b/apps/dokploy/components/dashboard/settings/users/show-invitations.tsx index 8c9813fcb..76d368a38 100644 --- a/apps/dokploy/components/dashboard/settings/users/show-invitations.tsx +++ b/apps/dokploy/components/dashboard/settings/users/show-invitations.tsx @@ -185,24 +185,21 @@ export const ShowInvitations = () => { Cancel Invitation )} - - { - await removeInvitation({ - invitationId: invitation.id, - }).then(() => { - refetch(); - toast.success( - "Invitation removed", - ); - }); - }} - > - Remove Invitation - )} + { + await removeInvitation({ + invitationId: invitation.id, + }).then(() => { + refetch(); + toast.success("Invitation removed"); + }); + }} + > + Remove Invitation +