Skip to content

Commit 78f971e

Browse files
refactor: add the translation key on the component
1 parent b21eee1 commit 78f971e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

public/locales/hr/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
"communities.overview.challenge.learning.title": "Sljedeći materijali za učenje opskrbit će vas tehničkim stručnostima potrebnim za uspješno rješavanje izazova.",
168168
"communities.overview.challenge.learning.start": "Počnite sada",
169169
"communities.overview.challenge.team.setup.title": "Sastavite svoj tim",
170-
"communities.overview.challenge.team.setup.description": "Pridružite se DeArk - ICP.Hub Germany Telegram grupi i pronađite svoje timove kako biste zajedno završili izazov.",
170+
"communities.overview.challenge.team.organization": "Pridružite se DeArk - ICP.Hub Germany Telegram grupi i pronađite svoje timove kako biste zajedno završili izazov.",
171171
"communities.overview.challenge.team.setup.info": "Da biste završili timski izazov, trebate slijediti ove korake:",
172172
"communities.overview.challenge.team.setup.submit-title": "Pošaljite svoj tim",
173173
"communities.overview.challenge.submission.description": "Zalijepite kod svog tima u nastavku i automatski će se povezati sa svim profilima.",

src/components/sections/challenges/SetupTeamChallenge.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ interface Props {
2020
export default function SetupTeamChallenge(): JSX.Element {
2121
const { invite, challenge } = useMultiSelector<unknown, Props>({ invite: (state: IRootState) => state.invites.data, challenge: (state: IRootState) => state.challenges.current });
2222

23-
const description = challenge?.additionalInfo?.teamFormation || "Join DeArk - ICP.Hub Germany telegram group and find your teammates to complete the challenge with you."
2423
const { t } = useTranslation();
2524

2625
return (
2726
<Section title="Submission">
2827
<div className="text-base font-normal text-slate-700 pt-8 pb-7 md:w-182.5">{t("communities.overview.challenge.team.setup.info")}</div>
2928
<div className="md:flex flex-row gap-5">
30-
<FormTeamCard index={1} title="Form your team" description={description} />
29+
<FormTeamCard index={1} title="Form your team" description={challenge?.additionalInfo?.teamFormation || t("communities.overview.challenge.team.organization")} />
3130
{invite && !invite.team?.locked ? (
3231
<ConfirmTeamInvitation index={2} title="Submit your team" text={`The maximum team members for this challenge is ${challenge?.teamLimit || "3"} people`} invite={invite} />
3332
) : (

0 commit comments

Comments
 (0)