feat: remove tabs when only user and no team (#19222)

This commit is contained in:
Tushar Bhatt authored and GitHub committed 2025-02-10 16:32:08 +00:00
1 parent 8e26882b2d
commit 74c292cc57
1 file changed
+2 -6
@@ -934,12 +934,8 @@ const InfiniteScrollMain = ({
return (
<>
{eventTypeGroups.length >= 1 && (
<>
<HorizontalTabs tabs={tabs} />
<InfiniteTeamsTab activeEventTypeGroup={activeEventTypeGroup[0]} />
</>
)}
{eventTypeGroups.length > 1 && <HorizontalTabs tabs={tabs} />}
{eventTypeGroups.length >= 1 && <InfiniteTeamsTab activeEventTypeGroup={activeEventTypeGroup[0]} />}
{eventTypeGroups.length === 0 && <CreateFirstEventTypeView slug={profiles[0].slug ?? ""} />}
<EventTypeEmbedDialog />
{searchParams?.get("dialog") === "duplicate" && <DuplicateDialog />}