Skip to content

Commit 3627785

Browse files
Merge pull request #5090 from topcoder-platform/gig-details-fixes
Gig details fixes
2 parents 21f27f5 + c81569d commit 3627785

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ workflows:
237237
filters:
238238
branches:
239239
only:
240-
- develop
240+
- gig-details-fixes
241241
# This is alternate dev env for parallel testing
242242
- "build-qa":
243243
context : org-global

src/shared/components/Gigs/GigDetails/index.jsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export default function GigDetails(props) {
4343
}
4444
let skills = getCustomField(job.custom_fields, 'Technologies Required');
4545
if (skills !== 'n/a') skills = skills.split(',').join(', ');
46+
const hPerW = getCustomField(job.custom_fields, 'Hours per week');
47+
const compens = job.min_annual_salary === job.max_annual_salary ? job.max_annual_salary : `${job.min_annual_salary} - ${job.max_annual_salary}`;
4648

4749
return (
4850
<div styleName="container">
@@ -70,7 +72,7 @@ export default function GigDetails(props) {
7072
<IconMoney />
7173
<div styleName="infos-data">
7274
Compensation
73-
<strong>${job.min_annual_salary} - ${job.max_annual_salary} / {getSalaryType(job.salary_type)}</strong>
75+
<strong>${compens} / {getSalaryType(job.salary_type)}</strong>
7476
</div>
7577
</div>
7678
<div styleName="infos-item">
@@ -84,7 +86,7 @@ export default function GigDetails(props) {
8486
<IconHours />
8587
<div styleName="infos-data">
8688
Hours
87-
<strong>{getCustomField(job.custom_fields, 'Hours per week')} hours / week</strong>
89+
<strong>{hPerW === 'n/a' ? hPerW : `${hPerW} hours / week`}</strong>
8890
</div>
8991
</div>
9092
<div styleName="infos-item">
@@ -108,7 +110,10 @@ export default function GigDetails(props) {
108110
* Topcoder does not provide visa sponsorship nor will we work with Staffing Agencies.
109111
</strong>
110112
<strong>
111-
** Topcoder and Wipro employees are not eligible for Gig work opportunities. Do not apply and send questions to <a href="mailto:support@topcoder.com">support@topcoder.com</a>.
113+
** USA Visa Holders - Please consult an attorney before applying to any Topcoder Gig. Some visa statuses will or will not allow you to conduct freelance work with Topcoder.
114+
</strong>
115+
<strong>
116+
*** Topcoder and Wipro employees are not eligible for Gig work opportunities. Do not apply and send questions to <a href="mailto:support@topcoder.com">support@topcoder.com</a>.
112117
</strong>
113118
</div>
114119
<div styleName="cta-buttons">

src/shared/utils/gigs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export function getSalaryType(data) {
1212
switch (data.id) {
1313
case 2: return 'annual';
1414
case 3: return 'week';
15+
case 5: return 'hourly';
1516
default: return 'n/a';
1617
}
1718
}

0 commit comments

Comments
 (0)