@@ -6,19 +6,16 @@ import { BUCKET_DATA } from 'utils/challenge-listing/buckets';
6
6
import SortingSelectBar from 'components/SortingSelectBar' ;
7
7
import Waypoint from 'react-waypoint' ;
8
8
9
- // import { challenge as challengeUtils } from 'topcoder-react-lib';
10
9
import CopilotOpportunityHeader from 'components/challenge-listing/CopilotOpportunityHeader' ;
11
10
import CardPlaceholder from '../../placeholders/ChallengeCard' ;
12
- import CopilotOpportunityCard from '../../CopilotOpportunityCard' ; // <== Replace with your actual Copilot Card component
11
+ import CopilotOpportunityCard from '../../CopilotOpportunityCard' ;
13
12
14
13
import './style.scss' ;
15
14
16
- // const Filter = challengeUtils.filter;
17
15
18
16
const NO_RESULTS_MESSAGE = 'No copilot opportunities found' ;
19
17
const LOADING_MESSAGE = 'Loading Copilot Opportunities' ;
20
18
21
- // Functional implementation of CopilotOpportunityBucket component
22
19
export default function CopilotOpportunityBucket ( {
23
20
bucket,
24
21
challengesUrl,
@@ -41,13 +38,6 @@ export default function CopilotOpportunityBucket({
41
38
const sortedOpportunities = _ . clone ( opportunities ) ;
42
39
sortedOpportunities . sort ( Sort [ activeSort ] . func ) ;
43
40
44
- // const filteredOpportunities = sortedOpportunities.filter(
45
- // Filter.getReviewOpportunitiesFilterFunction({
46
- // ...BUCKET_DATA[bucket].filter,
47
- // ...filterState,
48
- // }, challengeTypes),
49
- // );
50
-
51
41
const filteredOpportunities = sortedOpportunities ;
52
42
53
43
const cards = filteredOpportunities . map ( item => (
@@ -142,6 +132,5 @@ CopilotOpportunityBucket.propTypes = {
142
132
setFilterState : PT . func . isRequired ,
143
133
setSort : PT . func . isRequired ,
144
134
sort : PT . string ,
145
- // challengeTypes: PT.arrayOf(PT.shape()).isRequired,
146
135
setSearchText : PT . func . isRequired ,
147
136
} ;
0 commit comments