Skip to content

Commit

Permalink
Fix organization danger zone buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek committed Jun 3, 2024
1 parent b9ce7c6 commit 918651b
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ function OrganizationDangerZone({ organization }: OrganizationDangerZoneProps) {
return (
<div className="mt-8">
<h2 className="mb-4 text-2xl">Danger Zone</h2>
<p className="text-muted">Potentially destructive actions, be cautious!</p>
<div className="mt-6 inline-flex flex-col gap-6">
<p className="mb-4 text-muted">Potentially destructive actions, be cautious!</p>
{role == 'owner' ? (
<OrganizationDeleteButton />
) : (
<OrganizationLeaveButton organization={organization} />
{role == 'owner' && <OrganizationDeleteButton />}
</div>
)}
</div>
);
}
Expand Down

0 comments on commit 918651b

Please sign in to comment.