Skip to content

Commit 5b51915

Browse files
committed
refactor: streamline Remove Invitation dropdown menu item in ShowInvitations component
1 parent aa475e6 commit 5b51915

1 file changed

Lines changed: 13 additions & 16 deletions

File tree

apps/dokploy/components/dashboard/settings/users/show-invitations.tsx

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -185,24 +185,21 @@ export const ShowInvitations = () => {
185185
Cancel Invitation
186186
</DropdownMenuItem>
187187
)}
188-
189-
<DropdownMenuItem
190-
className="w-full cursor-pointer"
191-
onSelect={async (_e) => {
192-
await removeInvitation({
193-
invitationId: invitation.id,
194-
}).then(() => {
195-
refetch();
196-
toast.success(
197-
"Invitation removed",
198-
);
199-
});
200-
}}
201-
>
202-
Remove Invitation
203-
</DropdownMenuItem>
204188
</>
205189
)}
190+
<DropdownMenuItem
191+
className="w-full cursor-pointer"
192+
onSelect={async (_e) => {
193+
await removeInvitation({
194+
invitationId: invitation.id,
195+
}).then(() => {
196+
refetch();
197+
toast.success("Invitation removed");
198+
});
199+
}}
200+
>
201+
Remove Invitation
202+
</DropdownMenuItem>
206203
</DropdownMenuContent>
207204
</DropdownMenu>
208205
</TableCell>

0 commit comments

Comments
 (0)