mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: streamline Remove Invitation dropdown menu item in ShowInvitations component
This commit is contained in:
@@ -185,7 +185,8 @@ export const ShowInvitations = () => {
|
|||||||
Cancel Invitation
|
Cancel Invitation
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
)}
|
)}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
className="w-full cursor-pointer"
|
className="w-full cursor-pointer"
|
||||||
onSelect={async (_e) => {
|
onSelect={async (_e) => {
|
||||||
@@ -193,16 +194,12 @@ export const ShowInvitations = () => {
|
|||||||
invitationId: invitation.id,
|
invitationId: invitation.id,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
refetch();
|
refetch();
|
||||||
toast.success(
|
toast.success("Invitation removed");
|
||||||
"Invitation removed",
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Remove Invitation
|
Remove Invitation
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
|
|||||||
Reference in New Issue
Block a user