Skip to content

Commit dcfee9e

Browse files
Merge pull request topcoder-platform#5267 from topcoder-platform/gig-apply-fix
Gig apply fix
2 parents fe6f7ee + 651a0f0 commit dcfee9e

File tree

7 files changed

+12
-28
lines changed

7 files changed

+12
-28
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-
- hall-of-fame-fixes
240+
- gig-apply-fix
241241
# This is alternate dev env for parallel testing
242242
- "build-qa":
243243
context : org-global

src/shared/actions/recruitCRM.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ function normalizeRecruitPayload(job, payload) {
6060
`Date Available: ${new Date(payload.availFrom).toDateString()}`,
6161
`Heard About Gig: ${payload.reffereal}`,
6262
`Why fit: ${payload.whyFit}`,
63-
`Availability Per Week: ${payload.timeAvailability.filter(s => s.checked).map(s => s.label).join(',')}`,
6463
`Able to work during timezone? ${payload.timezoneConfirm.filter(s => s.value).map(s => s.label).join(',')}`,
6564
`Am I ok to work the duration? ${payload.durationConfirm.filter(s => s.value).map(s => s.label).join(',')}`,
6665
`Notes: ${payload.notes}`,

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -224,24 +224,6 @@ export default function GigApply(props) {
224224
errorMsg={formErrors.whyFit}
225225
value={formData.whyFit}
226226
/>
227-
<p>What is your availability per week?</p>
228-
<div styleName="checkboxes-row">
229-
{
230-
_.map(formData.timeAvailability, (cbox, indx) => (
231-
<div styleName="checkbox" key={`cbox-${indx}`}>
232-
<Checkbox
233-
onChange={(val) => {
234-
formData.timeAvailability[indx].checked = val;
235-
onFormInputChange('timeAvailability', formData.timeAvailability);
236-
}}
237-
checked={formData.timeAvailability[indx].checked}
238-
size="lg"
239-
/>
240-
<span styleName="label">{cbox.label}</span>
241-
</div>
242-
))
243-
}
244-
</div>
245227
<p>Are you able to work during the specified timezone? (<strong>{`${getCustomField(job.custom_fields, 'Timezone')}`}</strong>)</p>
246228
<RadioButton
247229
onChange={val => onFormInputChange('timezoneConfirm', val)}

src/shared/components/Leaderboard/LeaderboardTable/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ export default function LeaderboardTable(props) {
9393
<div
9494
styleName={`${stylesName}.handle-link`}
9595
onClick={() => onUsernameClick(competitor)}
96-
style={{ color: rating ? getRatingColor(rating) : null }}
96+
style={{ color: rating !== undefined ? getRatingColor(rating) : null }}
9797
>
9898
{competitor['member_profile_basic.handle'] || competitor.handle}
9999
</div>
100100
) : (
101101
<a
102102
href={`${window.origin}/members/${competitor['member_profile_basic.handle'] || competitor.handle}/`}
103103
target={`${_.includes(window.origin, 'www') ? '_self' : '_blank'}`}
104-
style={{ color: rating ? getRatingColor(rating) : null }}
104+
style={{ color: rating !== undefined ? getRatingColor(rating) : null }}
105105
>
106106
{competitor['member_profile_basic.handle'] || competitor.handle}
107107
</a>

src/shared/components/Leaderboard/Podium/styles.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
.PodiumWrap {
2222
display: flex;
23-
justify-content: space-evenly;
23+
justify-content: center !important;
2424

2525
@include xs-to-sm {
2626
flex-direction: column;
@@ -30,8 +30,14 @@
3030

3131
.Podium .podium-column {
3232
display: inline-block;
33+
margin-right: 20px;
34+
35+
&:last-child {
36+
margin-right: 0;
37+
}
3338

3439
@include xs-to-sm {
3540
margin-bottom: 15px;
41+
margin-right: 0;
3642
}
3743
}

src/shared/components/Leaderboard/PodiumSpot/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export default function PodiumSpot(props) {
160160
<div
161161
styleName={`${stylesName}.handle-link`}
162162
onClick={() => onUsernameClick(competitor)}
163-
style={{ color: rating ? getRatingColor(rating) : null }}
163+
style={{ color: rating !== undefined ? getRatingColor(rating) : null }}
164164
>
165165
{competitor['member_profile_basic.handle'] || competitor.handle}
166166
</div>
@@ -169,7 +169,7 @@ export default function PodiumSpot(props) {
169169
styleName={`${stylesName}.profile-link`}
170170
href={`${window.origin}/members/${competitor['member_profile_basic.handle'] || competitor.handle}/`}
171171
target={`${_.includes(window.origin, 'www') ? '_self' : '_blank'}`}
172-
style={{ color: rating ? getRatingColor(rating) : null }}
172+
style={{ color: rating !== undefined ? getRatingColor(rating) : null }}
173173
>
174174
{competitor['member_profile_basic.handle'] || competitor.handle}
175175
</a>

src/shared/containers/Gigs/RecruitCRMJobApply.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ class RecruitCRMJobApplyContainer extends React.Component {
2525
skills: _.map(techSkills, label => ({ label, selected: false })),
2626
durationConfirm: [{ label: 'Yes', value: false }, { label: 'No', value: false }],
2727
timezoneConfirm: [{ label: 'Yes', value: false }, { label: 'No', value: false }],
28-
timeAvailability: [
29-
{ label: '10 hours', checked: false }, { label: '20 hours', checked: false }, { label: '30 hours', checked: false }, { label: '40 hours', checked: false },
30-
],
3128
agreedTerms: false,
3229
country: _.map(countries.getNames('en'), val => ({ label: val, selected: false })),
3330
// eslint-disable-next-line react/destructuring-assignment

0 commit comments

Comments
 (0)