From 918651b23bc9240b4a0827f4013d3af954864913 Mon Sep 17 00:00:00 2001 From: Bartosz Dokurno Date: Mon, 3 Jun 2024 13:40:21 +0200 Subject: [PATCH] Fix organization danger zone buttons --- .../components/Organization/OrganizationDangerZone.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/client/src/components/Organization/OrganizationDangerZone.tsx b/apps/client/src/components/Organization/OrganizationDangerZone.tsx index ba844e5..fda1d9f 100644 --- a/apps/client/src/components/Organization/OrganizationDangerZone.tsx +++ b/apps/client/src/components/Organization/OrganizationDangerZone.tsx @@ -13,11 +13,12 @@ function OrganizationDangerZone({ organization }: OrganizationDangerZoneProps) { return (

Danger Zone

-

Potentially destructive actions, be cautious!

-
+

Potentially destructive actions, be cautious!

+ {role == 'owner' ? ( + + ) : ( - {role == 'owner' && } -
+ )}
); }