Skip to content

Commit 5c60794

Browse files
fix: Only show the LW tab if TP manager or payments is enabled (#3182)
1 parent acb90e0 commit 5c60794

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/components/CollectionsPage/CollectionsPage.tsx

+10-6
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,14 @@ export default function CollectionsPage(props: Props) {
306306
<Tabs.Tab active={currentTab === TABS.STANDARD_COLLECTIONS} onClick={() => handleTabChange(TABS.STANDARD_COLLECTIONS)}>
307307
{t('collections_page.collections')}
308308
</Tabs.Tab>
309-
<Tabs.Tab
310-
active={currentTab === TABS.THIRD_PARTY_COLLECTIONS}
311-
onClick={() => handleTabChange(TABS.THIRD_PARTY_COLLECTIONS)}
312-
>
313-
{t('collections_page.third_party_collections')}
314-
</Tabs.Tab>
309+
{(isThirdPartyManager || isLinkedWearablesPaymentsEnabled) && (
310+
<Tabs.Tab
311+
active={currentTab === TABS.THIRD_PARTY_COLLECTIONS}
312+
onClick={() => handleTabChange(TABS.THIRD_PARTY_COLLECTIONS)}
313+
>
314+
{t('collections_page.third_party_collections')}
315+
</Tabs.Tab>
316+
)}
315317
{hasUserOrphanItems && (
316318
// TODO: Remove tabs when there are no users with orphan items
317319
<Tabs.Tab active={currentTab === TABS.ITEMS} onClick={() => handleTabChange(TABS.ITEMS)}>
@@ -376,6 +378,8 @@ export default function CollectionsPage(props: Props) {
376378
isLoadingItems,
377379
isLoadingCollections,
378380
isLoadingOrphanItem,
381+
isLinkedWearablesPaymentsEnabled,
382+
isThirdPartyManager,
379383
handlePageChange,
380384
handleNewCollection,
381385
renderGrid,

0 commit comments

Comments
 (0)