@@ -6,19 +6,16 @@ import { BUCKET_DATA } from 'utils/challenge-listing/buckets';
66import SortingSelectBar from 'components/SortingSelectBar' ;
77import Waypoint from 'react-waypoint' ;
88
9- // import { challenge as challengeUtils } from 'topcoder-react-lib';
109import CopilotOpportunityHeader from 'components/challenge-listing/CopilotOpportunityHeader' ;
1110import CardPlaceholder from '../../placeholders/ChallengeCard' ;
12- import CopilotOpportunityCard from '../../CopilotOpportunityCard' ; // <== Replace with your actual Copilot Card component
11+ import CopilotOpportunityCard from '../../CopilotOpportunityCard' ;
1312
1413import './style.scss' ;
1514
16- // const Filter = challengeUtils.filter;
1715
1816const NO_RESULTS_MESSAGE = 'No copilot opportunities found' ;
1917const LOADING_MESSAGE = 'Loading Copilot Opportunities' ;
2018
21- // Functional implementation of CopilotOpportunityBucket component
2219export default function CopilotOpportunityBucket ( {
2320 bucket,
2421 challengesUrl,
@@ -41,13 +38,6 @@ export default function CopilotOpportunityBucket({
4138 const sortedOpportunities = _ . clone ( opportunities ) ;
4239 sortedOpportunities . sort ( Sort [ activeSort ] . func ) ;
4340
44- // const filteredOpportunities = sortedOpportunities.filter(
45- // Filter.getReviewOpportunitiesFilterFunction({
46- // ...BUCKET_DATA[bucket].filter,
47- // ...filterState,
48- // }, challengeTypes),
49- // );
50-
5141 const filteredOpportunities = sortedOpportunities ;
5242
5343 const cards = filteredOpportunities . map ( item => (
@@ -142,6 +132,5 @@ CopilotOpportunityBucket.propTypes = {
142132 setFilterState : PT . func . isRequired ,
143133 setSort : PT . func . isRequired ,
144134 sort : PT . string ,
145- // challengeTypes: PT.arrayOf(PT.shape()).isRequired,
146135 setSearchText : PT . func . isRequired ,
147136} ;
0 commit comments