Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HOTFIX(CampaignDetail): update dialog copy #4995

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lang/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,9 @@
"JBWS0c": {
"defaultMessage": "Link"
},
"JCZFqh": {
"defaultMessage": "Sign up now and start writing the annual questionnaire. Please check the announcement for event details."
},
"JFv0yt": {
"defaultMessage": "Unknown error. Please check wallet and retry."
},
Expand Down
3 changes: 3 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,9 @@
"JBWS0c": {
"defaultMessage": "Link"
},
"JCZFqh": {
"defaultMessage": "Sign up now and start writing the annual questionnaire. Please check the announcement for event details."
},
"JFv0yt": {
"defaultMessage": "Unknown error. Please check wallet and retry."
},
Expand Down
3 changes: 3 additions & 0 deletions lang/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,9 @@
"JBWS0c": {
"defaultMessage": "链接"
},
"JCZFqh": {
"defaultMessage": "现在报名,即可开始书写年度问卷,活动细则请查看公告"
},
"JFv0yt": {
"defaultMessage": "未知错误,请确认你的钱包并重新尝试"
},
Expand Down
3 changes: 3 additions & 0 deletions lang/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,9 @@
"JBWS0c": {
"defaultMessage": "連結"
},
"JCZFqh": {
"defaultMessage": "現在報名,即可開始書寫年度問卷,活動細則可查看公告"
},
"JFv0yt": {
"defaultMessage": "未知錯誤,請確認你的錢包並重新嘗試"
},
Expand Down
9 changes: 8 additions & 1 deletion src/views/CampaignDetail/Apply/Dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const ApplyCampaignDialog = ({
children,
}: ApplyCampaignDialogProps) => {
const { show, openDialog, closeDialog } = useDialogSwitch(true)
// TODO: remove this after annual questionnaire is over
const isAnnualQuestionnaire = campaign.id === 'QXJ0aWNsZTo4MjA3Mjc'

const now = new Date()
const { end: appEnd } = campaign.applicationPeriod || {}
Expand Down Expand Up @@ -80,7 +82,12 @@ const ApplyCampaignDialog = ({
<Dialog.Content>
<Dialog.Content.Message>
<p>
{isInApplicationPeriod ? (
{isAnnualQuestionnaire && isInApplicationPeriod ? (
<FormattedMessage
defaultMessage="Sign up now and start writing the annual questionnaire. Please check the announcement for event details."
id="JCZFqh"
/>
) : isInApplicationPeriod ? (
<FormattedMessage
defaultMessage="Apply now. The writing journey will begin in a few days. For event details, please check the Event Information. "
id="l0tvVM"
Expand Down
Loading