diff --git a/src/components/sections/challenges/TeamChallenge.tsx b/src/components/sections/challenges/TeamChallenge.tsx
index 9699cffef..d86463061 100644
--- a/src/components/sections/challenges/TeamChallenge.tsx
+++ b/src/components/sections/challenges/TeamChallenge.tsx
@@ -19,44 +19,44 @@ interface CardData {
* * @interface TeamChallengeCard
*/
+export const hackathonChallengeSteps: CardData[] = [
+ {
+ index: 1,
+ title: "Form your team",
+ text: "Open Telegram group and find your teammates to complete the challenge with you",
+ },
+ {
+ index: 2,
+ title: "Confirm your team",
+ text: "Make sure your teammates accept notification to confirm your team",
+ },
+ {
+ index: 3,
+ title: "Submit!",
+ text: "Once you have completed the challenge, only one person needs to submit it at the end of this page",
+ },
+];
+export const teamChallengeSteps: CardData[] = [
+ {
+ index: 1,
+ title: "Form your team",
+ text: "Open discord channel #teams and find your teammates to complete the challenge with you",
+ },
+ {
+ index: 2,
+ title: "Confirm your team",
+ text: "Make sure your teammates accept notification to confirm your team",
+ },
+ {
+ index: 3,
+ title: "Submit!",
+ text: "Once you have completed the challenge, only one person needs to submit it at the end of this page",
+ },
+];
+
export default function TeamChallenge(): JSX.Element {
const challenge = useSelector((state) => state.challenges.current);
- const hackathonChallengeSteps: CardData[] = [
- {
- index: 1,
- title: "Form your team",
- text: "Open Telegram group and find your teammates to complete the challenge with you",
- },
- {
- index: 2,
- title: "Confirm your team",
- text: "Make sure your teammates accept notification to confirm your team",
- },
- {
- index: 3,
- title: "Submit!",
- text: "Once you have completed the challenge, only one person needs to submit it at the end of this page",
- },
- ];
- const teamChallengeSteps: CardData[] = [
- {
- index: 1,
- title: "Form your team",
- text: "Open discord channel #teams and find your teammates to complete the challenge with you",
- },
- {
- index: 2,
- title: "Confirm your team",
- text: "Make sure your teammates accept notification to confirm your team",
- },
- {
- index: 3,
- title: "Submit!",
- text: "Once you have completed the challenge, only one person needs to submit it at the end of this page",
- },
- ];
-
const steps: CardData[] = useMemo(() => {
return challenge?.isHackathon ? hackathonChallengeSteps : teamChallengeSteps;
}, [challenge?.isTeamChallenge]);
diff --git a/src/components/sections/challenges/_partials/HackathonPrize.tsx b/src/components/sections/challenges/_partials/HackathonPrize.tsx
index 35d8a12f4..99b748c52 100644
--- a/src/components/sections/challenges/_partials/HackathonPrize.tsx
+++ b/src/components/sections/challenges/_partials/HackathonPrize.tsx
@@ -2,13 +2,13 @@ import { Distribution, Reward } from "@/types/course";
import { shortenNumber } from "@/utilities";
import { useTranslation } from "react-i18next";
-export default function HackathonPrize({ reward, description }: { reward: Reward; description: string }) {
+export default function HackathonPrize({ reward, description, testId }: { reward: Reward; description: string, testId?: string }) {
const { t } = useTranslation()
const { first, second, third } = reward?.distribution || ({} as Distribution);
const amount = shortenNumber(reward?.amount);
return (
<>
-
+
{reward?.fiatCurrency ?
t('communities.overview.reward.fiat.prize.pool', { amount, currency: reward.fiatCurrency, token: reward?.token }) :
diff --git a/src/components/sections/challenges/_partials/RewardsList.tsx b/src/components/sections/challenges/_partials/RewardsList.tsx
index c7dd17063..baacf0794 100644
--- a/src/components/sections/challenges/_partials/RewardsList.tsx
+++ b/src/components/sections/challenges/_partials/RewardsList.tsx
@@ -1,14 +1,19 @@
import Reward from "@/components/cards/challenge/_partials/Reward";
import { Reward as TReward } from "@/types/course";
-export default function RewardsList({ rewards }: { rewards?: TReward[] }) {
+interface RewardListProps {
+ rewards?: TReward[];
+ testId?: string;
+}
+
+export default function RewardsList({ rewards, testId = "rewardListId" }: RewardListProps) {
return (
- <>
+
{rewards?.map((reward, i) => (
))}
- >
+
);
}
diff --git a/src/components/ui/Certificate.tsx b/src/components/ui/Certificate.tsx
index c38679334..ffe1019af 100644
--- a/src/components/ui/Certificate.tsx
+++ b/src/components/ui/Certificate.tsx
@@ -30,7 +30,7 @@ interface CertificateProps {
*
* @type {[]}
*/
-const certificates = [
+export const certificates = [
{
name: "Celo",
icon: ,