Skip to content
This repository was archived by the owner on May 7, 2021. It is now read-only.

Commit d27054c

Browse files
sleepycatDaniel Tse
authored and
Daniel Tse
committed
Translate impact types (#670)
closes #656
1 parent 6e4fb7f commit d27054c

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

frontend/src/p2/ConfirmationSummary.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -150,29 +150,29 @@ const impactSummary = client => {
150150
howWereYouAffected.push(otherImpact)
151151
}
152152
return (
153-
<React.Fragment>
154-
<SectionHeader>
155-
<Trans>Impact</Trans>{' '}
156-
<I18n>
157-
{({ i18n }) => (
153+
<I18n>
154+
{({ i18n }) => (
155+
<>
156+
<SectionHeader>
157+
<Trans>Impact</Trans>{' '}
158158
<EditButton aria-label={i18n._('Edit impact')} to="/p2/impact" />
159+
</SectionHeader>
160+
{howWereYouAffected.length > 0 || damage != '' ? (
161+
<>
162+
<Text>{howWereYouAffected.map(i => i18n._(i)).join(', ')}</Text>
163+
<Text>{damage}</Text>
164+
</>
165+
) : (
166+
<Text>
167+
<Trans>
168+
Tell us how the scam impacted you so that we can better support
169+
other people who are affected.
170+
</Trans>
171+
</Text>
159172
)}
160-
</I18n>
161-
</SectionHeader>
162-
{howWereYouAffected.length > 0 || damage != '' ? (
163-
<React.Fragment>
164-
<Text>{howWereYouAffected.join(', ')}</Text>
165-
<Text>{damage}</Text>
166-
</React.Fragment>
167-
) : (
168-
<Text>
169-
<Trans>
170-
Tell us how the scam impacted you so that we can better support
171-
other people who are affected.
172-
</Trans>
173-
</Text>
173+
</>
174174
)}
175-
</React.Fragment>
175+
</I18n>
176176
)
177177
}
178178

0 commit comments

Comments
 (0)