Skip to content

Commit 309712f

Browse files
committed
Merge branch 'stage'
2 parents e7d1080 + 6cfdf6e commit 309712f

File tree

17 files changed

+104
-21
lines changed

17 files changed

+104
-21
lines changed
Lines changed: 46 additions & 0 deletions
Loading

public/locales/bg/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
"communities.overview.challenge.learning.start": "започнете сега",
116116
"communities.overview.challenge.team.setup.title": "Създайте вашия екип",
117117
"communities.overview.challenge.team.setup.description": "Изберете от 1 до 3 члена, които да се присъединят към предизвикателството.",
118+
"communities.overview.challenge.team.organization": "Присъединете се към групата в Telegram на DeArk - ICP.Hub Germany и намерете своите отбори, за да завършите предизвикателството с вас.",
118119
"communities.overview.challenge.team.setup.info": "За да завършите предизвикателството с екип, трябва да следвате тези стъпки:",
119120
"communities.overview.challenge.team.setup.submit-title": "Изпратете вашия екип",
120121
"communities.overview.challenge.submission.description": "Поставете кода на вашия екип по-долу и той автоматично ще създаде връзки към всички профили.",

public/locales/en/common.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
"communities.overview.challenge.learning.start": "Start now",
122122
"communities.overview.challenge.team.setup.title": "Form your team",
123123
"communities.overview.challenge.team.setup.description": "Select from 1 to 3 members to join you in the challenge.",
124+
"communities.overview.challenge.team.organization": "Join DeArk - ICP.Hub Germany telegram group and find your teammates to complete the challenge with you..",
124125
"communities.overview.challenge.team.setup.info": "To complete the team challenge, you need to follow these steps:",
125126
"communities.overview.challenge.team.setup.submit-title": "Submit your team",
126127
"communities.overview.challenge.submission.description": "Paste the code of your team below and it will automatically link to all the profiles",
@@ -417,8 +418,8 @@
417418
"kyc.default.title": "Identity verification",
418419
"kyc.default.completed": "Your identity has been verified successfully.",
419420
"kyc.default.reason": "To ensure the safety and security of our platform, we require all users to verify their identity. This verification process helps us maintain a trusted community of members who are committed to upholding our standards. Please take a moment to complete your KYC verification to help us in our efforts to create a safe and secure environment for everyone.",
420-
"kyc.verification.pending":"Your verification is currently being processed. Thank you for your patience",
421-
"kyc.verification.rejected":"We regret to inform you that your verification process has been rejected. Please contact support team for more information.",
421+
"kyc.verification.pending": "Your verification is currently being processed. Thank you for your patience",
422+
"kyc.verification.rejected": "We regret to inform you that your verification process has been rejected. Please contact support team for more information.",
422423
"kyc.default.button": "Start verification",
423424
"kyc.default.button.completed": "Go to profile",
424425
"kyc.payout.reason": "To cashout, you need to verify your identity first.",

public/locales/es/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
"communities.overview.challenge.learning.start": "Comenzar ahora",
121121
"communities.overview.challenge.team.setup.title": "Forma tu equipo",
122122
"communities.overview.challenge.team.setup.description": "Selecciona de 1 a 3 miembros para que se unan a ti en el desafío.",
123+
"communities.overview.challenge.team.organization": "Únete al grupo de Telegram DeArk - ICP.Hub Germany y encuentra a tus compañeros de equipo para completar el desafío contigo.",
123124
"communities.overview.challenge.team.setup.info": "Para completar el desafío en equipo, debes seguir estos pasos:",
124125
"communities.overview.challenge.team.setup.submit-title": "Envía tu equipo",
125126
"communities.overview.challenge.submission.description": "Pega el código de tu equipo a continuación y se enlazará automáticamente a todos los perfiles.",

public/locales/hr/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@
168168
"communities.overview.challenge.learning.start": "Počnite sada",
169169
"communities.overview.challenge.team.setup.title": "Sastavite svoj tim",
170170
"communities.overview.challenge.team.setup.description": "Odaberite između 1 do 3 člana koji će vam se pridružiti u izazovu.",
171+
"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.",
171172
"communities.overview.challenge.team.setup.info": "Da biste završili timski izazov, trebate slijediti ove korake:",
172173
"communities.overview.challenge.team.setup.submit-title": "Pošaljite svoj tim",
173174
"communities.overview.challenge.submission.description": "Zalijepite kod svog tima u nastavku i automatski će se povezati sa svim profilima.",

src/components/badges/RewardBadge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Coin from "@/components/ui/Coin";
2+
import { shortenNumber } from "@/utilities";
23
import classNames from "classnames";
34
import { ReactElement } from "react";
45

@@ -46,8 +47,7 @@ export default function RewardBadge({ reward = {}, type = "transparent", display
4647
{token && <Coin token={token} size="small" />}
4748
{amount && (
4849
<div className="font-medium pl-0 pr-2">
49-
{displayAmount && amount}
50-
{token}
50+
{displayAmount && shortenNumber(amount)} {token}
5151
</div>
5252
)}
5353
</span>

src/components/cards/challenge/Challenge.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import RelatedContent from "./RelatedContent";
88
import Badges from "./Badges";
99
import { useMemo } from "react";
1010
import { useTranslation } from "next-i18next";
11+
import { shortenNumber } from "@/utilities";
1112

1213
/**
1314
* `ChallengeCard` is a function component that renders a card
@@ -59,7 +60,7 @@ export default function ChallengeCard({ data, community, isCourseEnd }: Challeng
5960
<div className="md:pl-2 max-w-max">
6061
<div className="flex text-sm text-gray-700">
6162
<span className="block font-medium">
62-
{`${data?.isHackathon ? "$" : ""} ${totalReward} ${data?.isHackathon ? `Prize Pool Rewards` : `${reward?.token} Rewards`}`}
63+
{shortenNumber(totalReward)} {reward?.token} {` ${data?.isHackathon ? `Prize pool` : ""} rewards`}
6364
</span>
6465
</div>
6566
<div className="text-gray-400 text-xs font-normal">{data?.isHackathon ? "Top projects win money prizes" : "For submission and feedback"}</div>

src/components/cards/challenge/Overview.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useTranslation } from "next-i18next";
44
import DateManager from "@/utilities/DateManager";
55
import Certificate from "@/components/ui/Certificate";
66
import { Community } from "@/types/community";
7+
import { shortenNumber } from "@/utilities";
78

89
interface Props {
910
challenge: Challenge;
@@ -53,15 +54,15 @@ export default function Overview({ challenge, community }: Props) {
5354
<Coin size="medium" token={reward?.token} />
5455
<div className="text-sm md:pl-2 max-w-max">
5556
<div className="flex gap-1 text-gray-700 font-medium">
56-
<span>{reward.amount}</span>
57+
<span>{shortenNumber(reward.amount)}</span>
5758
<span>{reward?.token}</span>
5859
<span>{t("communities.overview.challenge.rewards")}</span>
5960
</div>
6061
<div className="text-gray-400 text-xs font-medium leading-3 mt-1 flex">
6162
{challenge.rewards.map((reward, index) => (
6263
<span key={`reward-${index}`}>
6364
{index > 0 && "\u003B "}
64-
{reward.amount} {reward.token}/{formatToken(reward.type)}
65+
{shortenNumber(reward.amount)} {reward.token}/{formatToken(reward.type)}
6566
</span>
6667
))}
6768
</div>

0 commit comments

Comments
 (0)