Skip to content

Commit 0dec1e0

Browse files
fix: remove the re-added default bounty
1 parent bf4f6c1 commit 0dec1e0

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

src/pages/bounties/index.tsx

Lines changed: 2 additions & 23 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";
@@ -32,25 +32,6 @@ interface bountiesMultiSelector {
3232
* @type {Bounty}
3333
*/
3434

35-
const defaulBounty = {
36-
name: "Tezos Starter Course",
37-
image: "/img/communities/tacode.svg",
38-
type: "Challenge",
39-
link: "https://tacode.dev/courses/dev-starter/challenges/f9c23fc7-3022-4347-b19c-66cc2424ac2f",
40-
colors: {
41-
text: "#0D61FF",
42-
accent: "#0D61FF",
43-
textAccent: "#fff",
44-
primary: "#0D61FF",
45-
},
46-
reward: {
47-
amount: 12,
48-
token: "tez",
49-
type: "SUBMISSION",
50-
},
51-
url: "https://tacode.dev/courses/dev-starter",
52-
};
53-
5435
/**
5536
* Bounties page component
5637
* @date 5/16/2023 - 11:39:56 AM
@@ -75,16 +56,14 @@ export default function Bounties() {
7556
bounties: (state: IRootState) => state.bounties.bountiesList,
7657
});
7758

78-
const bountiesList = useMemo(() => [defaulBounty, ...(bounties || [])], [bounties]);
79-
8059
return (
8160
<div className="flex justify-center content-wrapper">
8261
<div className="hidden lg:block w-1/4 mt-28 py-3 pr-10 lg:py-14">
8362
<Navigation />
8463
</div>
8564
<div className="flex-col w-full">
8665
<h1 className="text-4xl sm:text-5xl pt-10 md:pt-20 pb-10">{t("nav.bounties")}</h1>
87-
<BountyList bounties={bountiesList as Bounty[]} referrals={referrals} />
66+
<BountyList bounties={bounties as Bounty[]} referrals={referrals} />
8867
</div>
8968
</div>
9069
);

0 commit comments

Comments
 (0)