diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c6c9adf4..d50553d0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ changes. ### Added -- +- Add metadata url and hash to drep details [Issue 2911](https://github.com/IntersectMBO/govtool/issues/2911) ### Fixed diff --git a/govtool/frontend/src/components/organisms/DRepDetailsCard.tsx b/govtool/frontend/src/components/organisms/DRepDetailsCard.tsx index ac4c5b2fe..de812fd9a 100644 --- a/govtool/frontend/src/components/organisms/DRepDetailsCard.tsx +++ b/govtool/frontend/src/components/organisms/DRepDetailsCard.tsx @@ -48,6 +48,7 @@ export const DRepDetailsCard = ({ drepId, votingPower, isScriptBased, + metadataHash, } = dRepData; const groupedReferences = references?.reduce>( @@ -235,6 +236,53 @@ export const DRepDetailsCard = ({ /> )} + {url && ( + + + + {url} + + link + + + )} + {metadataHash && ( + + + + )} )} {/* CIP-119 DATA END */} diff --git a/govtool/frontend/src/i18n/locales/en.json b/govtool/frontend/src/i18n/locales/en.json index 370a74adf..eb9926f8e 100644 --- a/govtool/frontend/src/i18n/locales/en.json +++ b/govtool/frontend/src/i18n/locales/en.json @@ -328,7 +328,9 @@ "references": "References", "referenceDescription": "Description", "referenceDescriptionHelpfulText": "Limit: 80 characters", - "referenceURL": "URL" + "referenceURL": "URL", + "metadataUrl": "Metadata URL", + "metadataHash": "Metadata Hash" }, "errors": { "tooLongUrl": "Url must be less than 128 bytes",