Skip to content

Commit 39f29c0

Browse files
authored
Merge pull request #1022 from dacadeorg/fix/remove-tacode
deleted default bounty for tezos tacode
2 parents 6578f9f + 35654f7 commit 39f29c0

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

src/pages/bounties/index.tsx

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ReactElement, useCallback, useEffect, useMemo } from "react";
1+
import { ReactElement, useCallback, useEffect } from "react";
22
import Navigation from "@/components/sections/bounties/Navigation";
33
import BountyList from "@/components/list/Bounty";
44
import { useTranslation } from "react-i18next";
@@ -31,24 +31,6 @@ interface bountiesMultiSelector {
3131
*
3232
* @type {Bounty}
3333
*/
34-
const defaulBounty = {
35-
name: "Tezos Starter Course",
36-
image: "/img/communities/tacode.svg",
37-
type: "Challenge",
38-
link: "https://tacode.dev/courses/dev-starter/challenges/f9c23fc7-3022-4347-b19c-66cc2424ac2f",
39-
colors: {
40-
text: "#0D61FF",
41-
accent: "#0D61FF",
42-
textAccent: "#fff",
43-
primary: "#0D61FF",
44-
},
45-
reward: {
46-
amount: 12,
47-
token: "tez",
48-
type: "SUBMISSION",
49-
},
50-
url: "https://tacode.dev/courses/dev-starter",
51-
};
5234

5335
/**
5436
* Bounties page component
@@ -74,7 +56,6 @@ export default function Bounties() {
7456
bounties: (state: IRootState) => state.bounties.bountiesList,
7557
});
7658

77-
const bountiesList = useMemo(() => [defaulBounty, ...(bounties || [])], [bounties]);
7859

7960
return (
8061
<div className="flex justify-center content-wrapper">
@@ -83,7 +64,7 @@ export default function Bounties() {
8364
</div>
8465
<div className="flex-col w-full">
8566
<h1 className="text-4xl sm:text-5xl pt-10 md:pt-20 pb-10">{t("nav.bounties")}</h1>
86-
<BountyList bounties={bountiesList as Bounty[]} referrals={referrals} />
67+
<BountyList bounties={bounties as Bounty[]} referrals={referrals} />
8768
</div>
8869
</div>
8970
);

0 commit comments

Comments
 (0)