Skip to content

Commit b7bdf89

Browse files
authored
Merge pull request #2710 from IntersectMBO/change-anchor-copy
Change: labelling for on-chain governance action details
2 parents 2e40c39 + f0acd6a commit b7bdf89

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ changes.
2020

2121
### Changed
2222

23-
-
23+
- Change labelling of governance action metadata anchor
24+
- Change labelling and order of new constitution governance action details
2425

2526
### Removed
2627

govtool/frontend/src/components/molecules/GovernanceActionNewConstitutionDetailsTabContent.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ export const GovernanceActionNewConstitutionDetailsTabContent = ({
1212
return (
1313
<Box>
1414
<GovernanceActionCardElement
15-
isCopyButton
16-
label="Data Hash"
17-
text={(details?.anchor as NewConstitutionAnchor)?.dataHash as string}
18-
dataTestId="new-constitution-data-hash"
15+
isLinkButton
16+
label="New constitution link"
17+
text={(details?.anchor as NewConstitutionAnchor)?.url as string}
18+
dataTestId="new-constitution-url"
1919
textVariant={screenWidth > 1600 ? "longText" : "oneLine"}
2020
/>
2121
<GovernanceActionCardElement
2222
isCopyButton
23-
label="New Constitution Link"
24-
text={(details?.anchor as NewConstitutionAnchor)?.url as string}
25-
dataTestId="new-constitution-url"
23+
label="New constitution hash"
24+
text={(details?.anchor as NewConstitutionAnchor)?.dataHash as string}
25+
dataTestId="new-constitution-data-hash"
2626
textVariant={screenWidth > 1600 ? "longText" : "oneLine"}
2727
/>
2828
</Box>

govtool/frontend/src/i18n/locales/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@
344344
"about": "About",
345345
"abstract": "Abstract",
346346
"amount": "Amount:",
347-
"anchorURL": "Anchor URL",
348-
"anchorHash": "Anchor Hash",
347+
"anchorURL": "Metadata anchor link",
348+
"anchorHash": "Metadata anchor hash",
349349
"backToGovActions": "Back to Governance Actions",
350350
"castVote": "<0>You voted {{vote}} on this proposal</0>\non {{date}} (Epoch {{epoch}})",
351351
"castVoteDeadline": "You can change your vote up to {{date}} (Epoch {{epoch}})",

0 commit comments

Comments
 (0)