Skip to content

Commit

Permalink
Merge pull request #11384 from hassnian/issue-fix-profile-items-grid-…
Browse files Browse the repository at this point in the history
…in-collection

fix: profile page `items` grid in `collections` tab
  • Loading branch information
vikiival authored Jan 28, 2025
2 parents c31809b + c3cbf1b commit 8d5df30
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions components/profile/ProfileDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,11 @@
/>
</div>
</div>

<hr class="my-0">

<ItemsGrid
v-if="isItemsGridTab"
:search="itemsGridSearch"
:grid-section="gridSection"
:loading-other-network="loadingOtherNetwork"
Expand All @@ -408,27 +411,27 @@
<ProfileEmptyResult :prefix-list-with-asset="hasAssetPrefixMap[activeTab]" />
</template>
</ItemsGrid>
</div>
<CollectionGrid
v-if="activeTab === ProfileTab.COLLECTIONS"
:id="id"
:loading-other-network="loadingOtherNetwork"
class="pt-7"
>
<template
v-if="hasAssetPrefixMap[activeTab]?.length"
#empty-result

<CollectionGrid
v-else-if="activeTab === ProfileTab.COLLECTIONS"
:id="id"
:loading-other-network="loadingOtherNetwork"
class="pt-7"
>
<ProfileEmptyResult
:prefix-list-with-asset="hasAssetPrefixMap[ProfileTab.COLLECTIONS]
"
/>
</template>
</CollectionGrid>
<template
v-if="hasAssetPrefixMap[activeTab]?.length"
#empty-result
>
<ProfileEmptyResult :prefix-list-with-asset="hasAssetPrefixMap[ProfileTab.COLLECTIONS]" />
</template>
</CollectionGrid>
</div>

<Activity
v-if="activeTab === ProfileTab.ACTIVITY"
:id="id"
/>

<TradeActivityTable
v-if="[ProfileTab.SWAPS, ProfileTab.OFFERS].includes(activeTab)"
:key="activeTab"
Expand Down

0 comments on commit 8d5df30

Please sign in to comment.