From e32ad1cd32f8ac6f6414c859c4b185123f7a848c Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 25 May 2026 21:48:21 +0100 Subject: [PATCH] fix(cloud): hide empty notice box for pro subscriptions --- .../members/components/InviteMemberForm.tsx | 39 +++++++++---------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/apps/web/src/views/members/components/InviteMemberForm.tsx b/apps/web/src/views/members/components/InviteMemberForm.tsx index d21262d0..a06679a4 100644 --- a/apps/web/src/views/members/components/InviteMemberForm.tsx +++ b/apps/web/src/views/members/components/InviteMemberForm.tsx @@ -297,29 +297,27 @@ export function InviteMemberForm({ )} - {env("NEXT_PUBLIC_KAN_ENV") === "cloud" && ( -
- {isPartnerTier && seatLimit !== null ? ( -
-
- - {hasTeamSubscription ? t`Team Plan` : t`Pro Plan`} - - - {memberCount} / {seatLimit} {t`seats`} - -
+ {env("NEXT_PUBLIC_KAN_ENV") === "cloud" && + (isPartnerTier && seatLimit !== null ? ( +
+
+ + {hasTeamSubscription ? t`Team Plan` : t`Pro Plan`} + + + {memberCount} / {seatLimit} {t`seats`} +
- ) : !unlimitedSeats ? ( - hasTeamSubscription || hasProSubscription ? ( +
+ ) : !unlimitedSeats ? ( +
+ {hasTeamSubscription || hasProSubscription ? (
{hasTeamSubscription ? t`Team Plan` : t`Pro Plan ∞`}

- {unlimitedSeats - ? t`You have unlimited seats with your Pro Plan. There is no additional charge for new members!` - : t`Adding a new member will cost an additional ${price} (${billingType}) per seat.`} + {t`Adding a new member will cost an additional ${price} (${billingType}) per seat.`}

) : ( @@ -331,10 +329,9 @@ export function InviteMemberForm({ {t`Inviting members requires a Team or Pro plan. You'll be redirected to upgrade your workspace.`}

- ) - ) : null} -
- )} + )} +
+ ) : null)}