Skip to content

Commit 74c292c

Browse files
authored
feat: remove tabs when only user and no team (#19222)
1 parent 8e26882 commit 74c292c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

apps/web/modules/event-types/views/event-types-listing-view.tsx

+2-6
Original file line numberDiff line numberDiff line change
@@ -934,12 +934,8 @@ const InfiniteScrollMain = ({
934934

935935
return (
936936
<>
937-
{eventTypeGroups.length >= 1 && (
938-
<>
939-
<HorizontalTabs tabs={tabs} />
940-
<InfiniteTeamsTab activeEventTypeGroup={activeEventTypeGroup[0]} />
941-
</>
942-
)}
937+
{eventTypeGroups.length > 1 && <HorizontalTabs tabs={tabs} />}
938+
{eventTypeGroups.length >= 1 && <InfiniteTeamsTab activeEventTypeGroup={activeEventTypeGroup[0]} />}
943939
{eventTypeGroups.length === 0 && <CreateFirstEventTypeView slug={profiles[0].slug ?? ""} />}
944940
<EventTypeEmbedDialog />
945941
{searchParams?.get("dialog") === "duplicate" && <DuplicateDialog />}

0 commit comments

Comments
 (0)