Skip to content

Commit

Permalink
Fix threat text in comment review (#2060)
Browse files Browse the repository at this point in the history
  • Loading branch information
jadmsaadaot authored Aug 23, 2023
1 parent 72da1e2 commit d7ed49b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ const CommentReview = () => {
<MetHeader3>Comment(s)</MetHeader3>
</Grid>
</Grid>
{submission.comments?.map((comment, index) => {
{submission.comments?.map((comment) => {
return (
<Grid key={index} item xs={12}>
<Grid key={comment.id} item xs={12}>
<Divider />
<Grid xs={12} item paddingTop={2}>
<MetLabel>{comment.label ?? 'Label not available.'}</MetLabel>
Expand Down Expand Up @@ -355,7 +355,9 @@ const CommentReview = () => {
}
/>
<MetSmallText bold color="#d32f2f" marginLeft={'3em'} mt={'-1em'}>
{translate('comment.admin.review.ifThreatContact')}{' '}
{translate('comment.admin.review.threatTextOne')}{' '}
{translate('comment.admin.review.threatContact')}{' '}
{translate('comment.admin.review.threatTextTwo')}{' '}
<Link href={`mailto:${threatEmailContact}`}>{threatEmailContact}</Link>
</MetSmallText>
<FormControlLabel
Expand Down
4 changes: 3 additions & 1 deletion met-web/src/locales/en/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"comment": {
"admin": {
"review": {
"ifThreatContact": "If there is a threat/menace in the comments, check the box below. No email will be sent. Contact Joan Doe at",
"threatTextOne": "Select this option if there is a threat/menace in the comment(s). No email will be sent. Contact",
"threatContact": "Jon Doe",
"threatTextTwo": "at",
"threatContactEmail": "[email protected]"
}
}
Expand Down
5 changes: 4 additions & 1 deletion met-web/src/locales/en/eao.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
"comment": {
"admin": {
"review": {
"ifThreatContact": "If there is a threat/menace in the comments, check the box below. No email will be sent. Contact Sarah Plank at [email protected]"
"threatTextOne": "Select this option if there is a threat/menace in the comment(s). No email will be sent. Contact",
"threatContact": "Sarah Plank",
"threatTextTwo": "at",
"threatContactEmail": "[email protected]"
}
}
}
Expand Down

0 comments on commit d7ed49b

Please sign in to comment.