Skip to content

Commit

Permalink
Merge pull request #6978 from topcoder-platform/develop
Browse files Browse the repository at this point in the history
Remove hard-coded "On Demand" tag from self-service challenges
  • Loading branch information
jmgasper authored May 10, 2024
2 parents 7baceec + ff3092a commit dc56c0e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
13 changes: 0 additions & 13 deletions src/shared/components/challenge-detail/Header/ChallengeTags.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { config } from 'topcoder-react-utils';

import {
Tag,
DevelopmentTrackTag,
} from 'topcoder-react-ui-kit';

import VerifiedTag from 'components/challenge-listing/VerifiedTag';
Expand All @@ -23,7 +22,6 @@ import './style.scss';

export default function ChallengeTags(props) {
const {
isSelfService,
challengeId,
challengesUrl,
challengeType,
Expand Down Expand Up @@ -105,15 +103,6 @@ export default function ChallengeTags(props) {
</div>
))
}
{
isSelfService && (
<div styleName="tag">
<DevelopmentTrackTag>
<span>On Demand</span>
</DevelopmentTrackTag>
</div>
)
}
{
tags.map(tag => (
tag
Expand Down Expand Up @@ -158,11 +147,9 @@ ChallengeTags.defaultProps = {
events: [],
technPlatforms: [],
skills: [],
isSelfService: false,
};

ChallengeTags.propTypes = {
isSelfService: PT.bool,
challengeId: PT.string.isRequired,
challengesUrl: PT.string.isRequired,
events: PT.arrayOf(PT.string),
Expand Down
1 change: 0 additions & 1 deletion src/shared/components/challenge-detail/Header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ export default function ChallengeHeader(props) {
</h1>
<div styleName="tag-container">
<ChallengeTags
isSelfService={challenge.legacy.selfService}
challengeId={challengeId}
track={track}
challengeType={_.find(challengeTypesMap, { name: type }) || {}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import _ from 'lodash';
import React, { useMemo } from 'react';
import PT from 'prop-types';
import TrackIcon from 'components/TrackIcon';
import { DevelopmentTrackTag } from 'topcoder-react-ui-kit';
import { TABS as DETAIL_TABS } from 'actions/page/challenge-details';
import { Link } from 'topcoder-react-utils';
import {
Expand Down Expand Up @@ -107,13 +106,6 @@ function ChallengeCard({
/>
)
}
{
_.get(challenge, 'legacy.selfService') && (
<DevelopmentTrackTag>
<span>On Demand</span>
</DevelopmentTrackTag>
)
}
{ !isRecommendedChallenge
&& (challenge.tags.length + skills.length) > 0
&& (
Expand Down

0 comments on commit dc56c0e

Please sign in to comment.