File tree 4 files changed +23
-9
lines changed
components/GUIKit/JobListCard
4 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ export default class RecruitCRMService {
45
45
error : true ,
46
46
status : response . status ,
47
47
url : `${ this . private . baseUrl } /v1/jobs/search?${ qs . stringify ( req . query ) } ` ,
48
- key : this . private . authorization ,
49
48
} ) ;
50
49
}
51
50
const data = await response . json ( ) ;
@@ -78,7 +77,6 @@ export default class RecruitCRMService {
78
77
error : true ,
79
78
status : response . status ,
80
79
url : `${ this . private . baseUrl } /v1/jobs/${ req . params . id } ` ,
81
- key : this . private . authorization ,
82
80
} ) ;
83
81
}
84
82
const data = await response . json ( ) ;
@@ -111,7 +109,6 @@ export default class RecruitCRMService {
111
109
error : true ,
112
110
status : response . status ,
113
111
url : `${ this . private . baseUrl } /v1/jobs/search?${ qs . stringify ( req . query ) } ` ,
114
- key : this . private . authorization ,
115
112
} ) ;
116
113
}
117
114
const data = await response . json ( ) ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export default function JobListCard({
28
28
const hoursPerWeek = getCustomField ( job . custom_fields , 'Hours per week' ) ;
29
29
return (
30
30
< div styleName = "container" >
31
- < h6 > { job . name } </ h6 >
31
+ < Link to = { ` ${ config . GIGS_PAGES_PATH } / ${ job . slug } ` } styleName = "gig-name" > { job . name } </ Link >
32
32
< div styleName = "job-infos" >
33
33
< div styleName = "icon-val" >
34
34
< IconBlackSkills /> { skills }
Original file line number Diff line number Diff line change 14
14
@include gui-kit-content ;
15
15
@include roboto-regular ;
16
16
17
- h6 {
17
+ .gig-name ,
18
+ .gig-name :visited ,
19
+ .gig-name :active ,
20
+ .gig-name :hover {
18
21
color : #1e94a3 ;
19
22
margin-top : 0 ;
20
23
margin-bottom : 12px ;
24
+ text-decoration : none ;
25
+ font-family : Barlow, sans-serif ;
26
+ font-size : 20px ;
27
+ font-weight : 600 ;
28
+ line-height : 24px ;
29
+ text-transform : uppercase ;
21
30
22
31
@include xs-to-sm {
23
32
margin-bottom : 20px ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class RecruitCRMJobsContainer extends React.Component {
22
22
this . state = {
23
23
term : '' ,
24
24
page : 0 ,
25
- sortBy : 'created_on ' ,
25
+ sortBy : 'updated_on ' ,
26
26
} ;
27
27
28
28
this . onSearch = this . onSearch . bind ( this ) ;
@@ -88,9 +88,17 @@ class RecruitCRMJobsContainer extends React.Component {
88
88
// Filter by term
89
89
if ( term ) {
90
90
jobsToDisplay = _ . filter ( jobs , ( job ) => {
91
- if ( job . name . toLowerCase ( ) . includes ( term . toLowerCase ( ) ) ) return true ;
91
+ // eslint-disable-next-line no-underscore-dangle
92
+ const _term = term . toLowerCase ( ) ;
93
+ // name search
94
+ if ( job . name . toLowerCase ( ) . includes ( _term ) ) return true ;
95
+ // skills search
96
+ const skills = _ . find ( job . custom_fields , [ 'field_name' , 'Technologies Required' ] ) ;
97
+ if ( skills && skills . value && skills . value . toLowerCase ( ) . includes ( _term ) ) return true ;
98
+ // location
99
+ if ( job . country . toLowerCase ( ) . includes ( _term ) ) return true ;
100
+ // no match
92
101
return false ;
93
- // add skills here
94
102
} ) ;
95
103
}
96
104
// Sort controlled by sortBy state
@@ -106,7 +114,7 @@ class RecruitCRMJobsContainer extends React.Component {
106
114
return (
107
115
< div styleName = "container" >
108
116
< div styleName = "filters" >
109
- < SearchCombo placeholder = "Search Job Listings by Name or Skills " onSearch = { this . onSearch } term = { term } />
117
+ < SearchCombo placeholder = "Search Gig Listings by Name, Skills or Location " onSearch = { this . onSearch } term = { term } />
110
118
</ div >
111
119
< div styleName = "jobs-list-container" >
112
120
{
You can’t perform that action at this time.
0 commit comments