File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export default function JobListCard({
36
36
< IconBlackLocation /> { job . country }
37
37
</ div >
38
38
< div styleName = "icon-val" >
39
- < IconBlackPayment /> ${ job . min_annual_salary } - $ { job . max_annual_salary } / { getSalaryType ( job . salary_type ) }
39
+ < IconBlackPayment /> ${ job . min_annual_salary } - { job . max_annual_salary } (USD) / { getSalaryType ( job . salary_type ) }
40
40
</ div >
41
41
< div styleName = "icon-val" >
42
42
< IconBlackDuration /> { getCustomField ( job . custom_fields , 'Duration' ) }
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export default function GigDetails(props) {
44
44
let skills = getCustomField ( job . custom_fields , 'Technologies Required' ) ;
45
45
if ( skills !== 'n/a' ) skills = skills . split ( ',' ) . join ( ', ' ) ;
46
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 } ` ;
47
+ const compens = job . min_annual_salary === job . max_annual_salary ? job . max_annual_salary : `${ job . min_annual_salary } - ${ job . max_annual_salary } (USD) ` ;
48
48
49
49
return (
50
50
< div styleName = "container" >
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class RecruitCRMJobsContainer extends React.Component {
31
31
term : '' ,
32
32
page : 0 ,
33
33
sortBy : 'created_on' ,
34
- location : 'Any Location ' ,
34
+ location : 'All ' ,
35
35
} ;
36
36
// binds
37
37
this . onSearch = this . onSearch . bind ( this ) ;
@@ -121,13 +121,16 @@ class RecruitCRMJobsContainer extends React.Component {
121
121
// build current locations dropdown based on all data
122
122
// and filter by selected location
123
123
jobsToDisplay = _ . filter ( jobs , ( job ) => {
124
+ const country = job . country === 'Anywhere' || job . country === 'Any' ? 'All' : job . country ;
124
125
// build dropdown
125
- const found = _ . find ( locations , { label : job . country } ) ;
126
+ const found = _ . find ( locations , { label : country } ) ;
126
127
if ( ! found ) {
127
- locations . push ( { label : job . country , selected : location === job . country } ) ;
128
+ locations . push ( {
129
+ label : country , selected : location . toLowerCase ( ) === country . toLowerCase ( ) ,
130
+ } ) ;
128
131
}
129
132
// filter
130
- if ( location === 'Anywhere' || location === 'Any' || location === 'Any Location ' ) return true ;
133
+ if ( location === 'Anywhere' || location === 'Any' || location === 'All ' ) return true ;
131
134
return location . toLowerCase ( ) === job . country . toLowerCase ( ) ;
132
135
} ) ;
133
136
// sort location dropdown
You can’t perform that action at this time.
0 commit comments