Show team invites regardless of user plan (#8417)

pull/8406/head^2
Omar López 2023-04-20 13:56:38 -07:00 committed by GitHub
parent 10d3c6ecaa
commit 3af5a7404e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 9 deletions

View File

@ -65,6 +65,13 @@ export function TeamsListing() {
<>
{!!errorMessage && <Alert severity="error" title={errorMessage} />}
{invites.length > 0 && (
<div className="bg-subtle mb-6 rounded-md p-5">
<Label className=" text-emphasis pb-2 font-semibold">{t("pending_invites")}</Label>
<TeamList teams={invites} pending />
</div>
)}
<UpgradeTip
title="calcom_is_better_with_team"
description="add_your_team_members"
@ -82,15 +89,7 @@ export function TeamsListing() {
</ButtonGroup>
</div>
}>
<>
{invites.length > 0 && (
<div className="bg-subtle mb-6 rounded-md p-5">
<Label className=" text-emphasis pb-2 font-semibold">{t("pending_invites")}</Label>
<TeamList teams={invites} pending />
</div>
)}
{teams.length > 0 && <TeamList teams={teams} />}
</>
{teams.length > 0 ? <TeamList teams={teams} /> : <></>}
</UpgradeTip>
</>
);