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" ;
@@ -32,25 +32,6 @@ interface bountiesMultiSelector {
32
32
* @type {Bounty }
33
33
*/
34
34
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
-
54
35
/**
55
36
* Bounties page component
56
37
* @date 5/16/2023 - 11:39:56 AM
@@ -75,16 +56,14 @@ export default function Bounties() {
75
56
bounties : ( state : IRootState ) => state . bounties . bountiesList ,
76
57
} ) ;
77
58
78
- const bountiesList = useMemo ( ( ) => [ defaulBounty , ...( bounties || [ ] ) ] , [ bounties ] ) ;
79
-
80
59
return (
81
60
< div className = "flex justify-center content-wrapper" >
82
61
< div className = "hidden lg:block w-1/4 mt-28 py-3 pr-10 lg:py-14" >
83
62
< Navigation />
84
63
</ div >
85
64
< div className = "flex-col w-full" >
86
65
< 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 } />
88
67
</ div >
89
68
</ div >
90
69
) ;
0 commit comments