fix: private team regression (#10914)
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>pull/10957/head
parent
6ce4122528
commit
00d01882d4
|
@ -199,19 +199,27 @@ function TeamPage({ team, isUnpublished, markdownStrippedBio, isValidOrgDomain }
|
||||||
<SubTeams />
|
<SubTeams />
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
{(showMembers.isOn || !team.eventTypes.length) && <Team team={team} />}
|
{(showMembers.isOn || !team.eventTypes.length) &&
|
||||||
|
(team.isPrivate ? (
|
||||||
|
<div className="w-full text-center">
|
||||||
|
<h2 className="text-emphasis font-semibold">{t("you_cannot_see_team_members")}</h2>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<Team team={team} />
|
||||||
|
))}
|
||||||
{!showMembers.isOn && team.eventTypes.length > 0 && (
|
{!showMembers.isOn && team.eventTypes.length > 0 && (
|
||||||
<div className="mx-auto max-w-3xl ">
|
<div className="mx-auto max-w-3xl ">
|
||||||
<EventTypes />
|
<EventTypes />
|
||||||
|
|
||||||
{!team.hideBookATeamMember && (
|
{/* Hide "Book a team member button when team is private or hideBookATeamMember is true" */}
|
||||||
|
{(!team.hideBookATeamMember || team.isPrivate) && (
|
||||||
<div>
|
<div>
|
||||||
<div className="relative mt-12">
|
<div className="relative mt-12">
|
||||||
<div className="absolute inset-0 flex items-center" aria-hidden="true">
|
<div className="absolute inset-0 flex items-center" aria-hidden="true">
|
||||||
<div className="border-subtle w-full border-t" />
|
<div className="border-subtle w-full border-t" />
|
||||||
</div>
|
</div>
|
||||||
<div className="relative flex justify-center">
|
<div className="relative flex justify-center">
|
||||||
<span className="dark:bg-darkgray-50 bg-subtle text-subtle dark:text-inverted px-2 text-sm">
|
<span className="dark:bg-darkgray-50 bg-subtle text-subtle px-2 text-sm">
|
||||||
{t("or")}
|
{t("or")}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue