Skip to content

Commit f1e3d3e

Browse files
author
himaniraghav3
committed
chore(core): general code cleanup
remove commented code, add prod copilots url. no issue
1 parent 524a86c commit f1e3d3e

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

config/production.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = {
2626
* as a more verbose name for the param. */
2727
COMMUNITY_APP: 'https://community-app.topcoder.com',
2828
CHALLENGES_URL: 'https://www.topcoder.com/challenges',
29+
COPILOTS_URL: 'https://copilots.topcoder.com',
2930
TCO_OPEN_URL: 'https://www.topcoder.com/community/member-programs/topcoder-open',
3031

3132
AUTH: 'https://accounts-auth0.topcoder.com',

src/shared/components/challenge-listing/CopilotOpportunityCard/index.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/**
2-
* Component for rendering a Copilot Opportunity and associated Challenge
3-
* information. Will be contained within a Bucket.
2+
* Component for rendering a Copilot Opportunity Card which will serve as a row in the list.
43
*/
54
import _ from 'lodash';
65
import { config } from 'topcoder-react-utils';

src/shared/components/challenge-listing/Listing/CopilotOpportunityBucket/index.jsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,16 @@ import { BUCKET_DATA } from 'utils/challenge-listing/buckets';
66
import SortingSelectBar from 'components/SortingSelectBar';
77
import Waypoint from 'react-waypoint';
88

9-
// import { challenge as challengeUtils } from 'topcoder-react-lib';
109
import CopilotOpportunityHeader from 'components/challenge-listing/CopilotOpportunityHeader';
1110
import CardPlaceholder from '../../placeholders/ChallengeCard';
12-
import CopilotOpportunityCard from '../../CopilotOpportunityCard'; // <== Replace with your actual Copilot Card component
11+
import CopilotOpportunityCard from '../../CopilotOpportunityCard';
1312

1413
import './style.scss';
1514

16-
// const Filter = challengeUtils.filter;
1715

1816
const NO_RESULTS_MESSAGE = 'No copilot opportunities found';
1917
const LOADING_MESSAGE = 'Loading Copilot Opportunities';
2018

21-
// Functional implementation of CopilotOpportunityBucket component
2219
export 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

Comments
 (0)