Skip to content

Commit

Permalink
token display update (displays all clauses all the time now)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangtanaka-org committed Dec 2, 2024
1 parent b742d41 commit 7179bca
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/pages/objkt-display/tabs/Copyright.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export const Copyright = () => {
rightsAreTransferable: 'Rights are Transferable (Secondary Sales)',
releasePublicDomain: 'Release to Public Domain',
customUriEnabled: 'Custom URI Enabled',
customUri: 'Custom URI',
customUri:
'Custom URI (External Terms & Works Connected To This Agreement)',
}

const descriptions = {
Expand Down Expand Up @@ -136,9 +137,6 @@ export const Copyright = () => {
<ul>
{licenseData?.clauses &&
Object.entries(licenseData?.clauses).map(([key, value]) => {
if (isCustomUriOnly() && key !== 'customUri') {
return null // Do not render other clauses if customUriEnabled is true
}
const title = clauseLabels[key]
const displayValue = descriptions[key]
? descriptions[key][value]
Expand Down Expand Up @@ -213,7 +211,7 @@ export const Copyright = () => {
</Container>
</>
)}
{nft?.rights !== 'custom' && nft?.rights && (
{nft?.rights && (
<Container>
<h3>License Information</h3>
<p>{nft?.rights}</p>
Expand Down

0 comments on commit 7179bca

Please sign in to comment.