Skip to content

Commit

Permalink
[DDW-566] Update learn more link for ended registration
Browse files Browse the repository at this point in the history
  • Loading branch information
topseniors committed Mar 3, 2021
1 parent c99563a commit 88e11b1
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 22 deletions.
23 changes: 16 additions & 7 deletions source/renderer/app/components/voting/VotingInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ const messages = defineMessages({
learnMoreLinkUrl: {
id: 'voting.info.learnMoreLinkUrl',
defaultMessage: '!!!https://cardano.ideascale.com/a/index',
description: 'learnMoreLinkUrl for voting registration steps',
description: 'Learn more link url for registration steps',
},
learnMoreLinkUrlForEndedRegistration: {
id: 'voting.info.learnMoreLinkUrlForEndedRegistration',
defaultMessage:
'!!!https://iohk.zendesk.com/hc/en-us/articles/900004448046',
description: 'Learn more link url for ended registration',
},
bottomContentTitle: {
id: 'voting.info.bottomContentTitle',
Expand Down Expand Up @@ -159,11 +165,14 @@ export default class VotingInfo extends Component<Props, State> {
? messages.headingForEndedRegistration
: messages.heading;
const heading = intl.formatMessage(headingMessage);
const learnMoreLinkLabel = intl.formatMessage(messages.learnMoreLinkLabel);
const learnMoreLinkLabelForEndedRegistration = intl.formatMessage(
messages.learnMoreLinkLabelForEndedRegistration
);
const learnMoreLinkUrl = intl.formatMessage(messages.learnMoreLinkUrl);
const learnMoreLinkLabelMessage = isRegistrationEnded
? messages.learnMoreLinkLabelForEndedRegistration
: messages.learnMoreLinkLabel;
const learnMoreLinkLabel = intl.formatMessage(learnMoreLinkLabelMessage);
const learnMoreLinkUrlMessage = isRegistrationEnded
? messages.learnMoreLinkUrlForEndedRegistration
: messages.learnMoreLinkUrl;
const learnMoreLinkUrl = intl.formatMessage(learnMoreLinkUrlMessage);
const stepTitle1 = intl.formatMessage(messages.stepTitle1);
const stepTitle2 = intl.formatMessage(messages.stepTitle2);
const bottomContentTitle = intl.formatMessage(messages.bottomContentTitle);
Expand Down Expand Up @@ -223,7 +232,7 @@ export default class VotingInfo extends Component<Props, State> {
{intl.formatMessage(messages.learnMorePreviousLabel)}
</span>
<Link
label={learnMoreLinkLabelForEndedRegistration}
label={learnMoreLinkLabel}
onClick={() => onExternalLinkClick(learnMoreLinkUrl)}
className={styles.learnMoreLink}
/>
Expand Down
44 changes: 29 additions & 15 deletions source/renderer/app/i18n/locales/defaultMessages.json
Original file line number Diff line number Diff line change
Expand Up @@ -8313,7 +8313,7 @@
},
{
"defaultMessage": "!!!https://cardano.ideascale.com/a/index",
"description": "learnMoreLinkUrl for voting registration steps",
"description": "Learn more link url for registration steps",
"end": {
"column": 3,
"line": 76
Expand All @@ -8325,102 +8325,116 @@
"line": 72
}
},
{
"defaultMessage": "!!!https://iohk.zendesk.com/hc/en-us/articles/900004448046",
"description": "Learn more link url for ended registration",
"end": {
"column": 3,
"line": 82
},
"file": "source/renderer/app/components/voting/VotingInfo.js",
"id": "voting.info.learnMoreLinkUrlForEndedRegistration",
"start": {
"column": 40,
"line": 77
}
},
{
"defaultMessage": "!!!Download the Catalyst Voting app on your smartphone",
"description": "bottomContentTitle for voting registration steps",
"end": {
"column": 3,
"line": 81
"line": 87
},
"file": "source/renderer/app/components/voting/VotingInfo.js",
"id": "voting.info.bottomContentTitle",
"start": {
"column": 22,
"line": 77
"line": 83
}
},
{
"defaultMessage": "!!!To register to vote for Catalyst Fund3 you first need to download the <b>Catalyst Voting</b> app on your Android or iOS smartphone.",
"description": "bottomContentDescription for voting registration steps",
"end": {
"column": 3,
"line": 87
"line": 93
},
"file": "source/renderer/app/components/voting/VotingInfo.js",
"id": "voting.info.bottomContentDescription",
"start": {
"column": 28,
"line": 82
"line": 88
}
},
{
"defaultMessage": "!!!To cast your vote on Project Catalyst Fund3 proposals, you need to download the <b>Catalyst Voting</b> app on your Android or iOS smartphone.",
"description": "bottomContentDescription for ended registration",
"end": {
"column": 3,
"line": 93
"line": 99
},
"file": "source/renderer/app/components/voting/VotingInfo.js",
"id": "voting.info.bottomContentDescriptionForEndedRegistration",
"start": {
"column": 48,
"line": 88
"line": 94
}
},
{
"defaultMessage": "!!!I have installed the Catalyst Voting app",
"description": "checkboxLabel for voting registration steps",
"end": {
"column": 3,
"line": 98
"line": 104
},
"file": "source/renderer/app/components/voting/VotingInfo.js",
"id": "voting.info.checkboxLabel",
"start": {
"column": 17,
"line": 94
"line": 100
}
},
{
"defaultMessage": "!!!Register to vote",
"description": "Button Label for voting registration steps",
"end": {
"column": 3,
"line": 103
"line": 109
},
"file": "source/renderer/app/components/voting/VotingInfo.js",
"id": "voting.info.buttonLabel",
"start": {
"column": 15,
"line": 99
"line": 105
}
},
{
"defaultMessage": "!!!https://play.google.com/store/apps/details?id=io.iohk.vitvoting",
"description": "\"androidAppButtonUrl\" for the Catalyst voting app",
"end": {
"column": 3,
"line": 109
"line": 115
},
"file": "source/renderer/app/components/voting/VotingInfo.js",
"id": "voting.info.androidAppButtonUrl",
"start": {
"column": 23,
"line": 104
"line": 110
}
},
{
"defaultMessage": "!!!https://apps.apple.com/in/app/catalyst-voting/id1517473397",
"description": "\"appleAppButtonUrl\" for the Catalyst voting app",
"end": {
"column": 3,
"line": 115
"line": 121
},
"file": "source/renderer/app/components/voting/VotingInfo.js",
"id": "voting.info.appleAppButtonUrl",
"start": {
"column": 21,
"line": 110
"line": 116
}
}
],
Expand Down
1 change: 1 addition & 0 deletions source/renderer/app/i18n/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@
"voting.info.learnMoreLinkLabel": "Learn more",
"voting.info.learnMoreLinkLabelForEndedRegistration": "Fund3 FAQs",
"voting.info.learnMoreLinkUrl": "https://cardano.ideascale.com/a/index",
"voting.info.learnMoreLinkUrlForEndedRegistration": "https://iohk.zendesk.com/hc/en-us/articles/900004448046",
"voting.info.learnMoreNextLabel": "for more information.",
"voting.info.learnMorePreviousLabel": "Please read the",
"voting.info.noWallets.createWalletButtonLabel": "Create wallet",
Expand Down
1 change: 1 addition & 0 deletions source/renderer/app/i18n/locales/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@
"voting.info.learnMoreLinkLabel": "もっと知る",
"voting.info.learnMoreLinkLabelForEndedRegistration": "Fund3についてよくある質問",
"voting.info.learnMoreLinkUrl": "https://cardano.ideascale.com/a/index",
"voting.info.learnMoreLinkUrlForEndedRegistration": "https://iohk.zendesk.com/hc/ja/articles/900004448046",
"voting.info.learnMoreNextLabel": "をご覧ください。",
"voting.info.learnMorePreviousLabel": "詳細は",
"voting.info.noWallets.createWalletButtonLabel": "ウォレットを作成する",
Expand Down

0 comments on commit 88e11b1

Please sign in to comment.