1
- import { ReactElement , useCallback , useEffect , useMemo } from "react" ;
1
+ import { ReactElement , useCallback , useEffect } from "react" ;
2
2
import Navigation from "@/components/sections/bounties/Navigation" ;
3
3
import BountyList from "@/components/list/Bounty" ;
4
4
import { useTranslation } from "react-i18next" ;
@@ -31,24 +31,6 @@ interface bountiesMultiSelector {
31
31
*
32
32
* @type {Bounty }
33
33
*/
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
- } ;
52
34
53
35
/**
54
36
* Bounties page component
@@ -74,7 +56,6 @@ export default function Bounties() {
74
56
bounties : ( state : IRootState ) => state . bounties . bountiesList ,
75
57
} ) ;
76
58
77
- const bountiesList = useMemo ( ( ) => [ defaulBounty , ...( bounties || [ ] ) ] , [ bounties ] ) ;
78
59
79
60
return (
80
61
< div className = "flex justify-center content-wrapper" >
@@ -83,7 +64,7 @@ export default function Bounties() {
83
64
</ div >
84
65
< div className = "flex-col w-full" >
85
66
< 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 } />
87
68
</ div >
88
69
</ div >
89
70
) ;
0 commit comments