Skip to content

Commit

Permalink
fix: Only show the LW tab if TP manager or payments is enabled (#3182)
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio authored Sep 13, 2024
1 parent acb90e0 commit 5c60794
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/components/CollectionsPage/CollectionsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,14 @@ export default function CollectionsPage(props: Props) {
<Tabs.Tab active={currentTab === TABS.STANDARD_COLLECTIONS} onClick={() => handleTabChange(TABS.STANDARD_COLLECTIONS)}>
{t('collections_page.collections')}
</Tabs.Tab>
<Tabs.Tab
active={currentTab === TABS.THIRD_PARTY_COLLECTIONS}
onClick={() => handleTabChange(TABS.THIRD_PARTY_COLLECTIONS)}
>
{t('collections_page.third_party_collections')}
</Tabs.Tab>
{(isThirdPartyManager || isLinkedWearablesPaymentsEnabled) && (
<Tabs.Tab
active={currentTab === TABS.THIRD_PARTY_COLLECTIONS}
onClick={() => handleTabChange(TABS.THIRD_PARTY_COLLECTIONS)}
>
{t('collections_page.third_party_collections')}
</Tabs.Tab>
)}
{hasUserOrphanItems && (
// TODO: Remove tabs when there are no users with orphan items
<Tabs.Tab active={currentTab === TABS.ITEMS} onClick={() => handleTabChange(TABS.ITEMS)}>
Expand Down Expand Up @@ -376,6 +378,8 @@ export default function CollectionsPage(props: Props) {
isLoadingItems,
isLoadingCollections,
isLoadingOrphanItem,
isLinkedWearablesPaymentsEnabled,
isThirdPartyManager,
handlePageChange,
handleNewCollection,
renderGrid,
Expand Down

0 comments on commit 5c60794

Please sign in to comment.