Skip to content

Commit

Permalink
feat: Show royalty recipient in the Gallery Item
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarsen136 committed Aug 18, 2023
1 parent cf1251b commit 96251bc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/gallery/GalleryItemDescription.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@
<p>{{ $t('tabs.tabDetails.royalties') }}</p>
<p>{{ nft?.royalty }}%</p>
</div>

<div
v-if="nft?.recipient"
class="is-flex is-justify-content-space-between">
<p>{{ $t('tabs.tabDetails.royaltyRecipient') }}</p>
<nuxt-link
:to="`/${urlPrefix}/u/${nft?.recipient}`"
class="has-text-link">
<Identity ref="identity" :address="nft?.recipient" />
</nuxt-link>
</div>

<hr class="my-2" />
<div v-if="nftImage" class="is-flex is-justify-content-space-between">
<p>{{ $t('tabs.tabDetails.media') }}</p>
Expand Down
1 change: 1 addition & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,7 @@
"version": "Version",
"tokenStandard": "Token Standard",
"royalties": "Royalties",
"royaltyRecipient": "Royalty recipient",
"media": "Media",
"animatedMedia": "Animated Media",
"metadata": "Metadata"
Expand Down
1 change: 1 addition & 0 deletions queries/subsquid/general/nftById.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ query nftById($id: String!) {
}
}
royalty
recipient
}
}

0 comments on commit 96251bc

Please sign in to comment.