File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,11 @@ export const JobsWidget: FunctionComponent = () => {
60
60
< Container >
61
61
< Block
62
62
tag = "a"
63
- href = { `${ CONFIG . jobsURL } /api/apply?id=${ job . ref . id } ` }
63
+ href = {
64
+ job . data . directApply
65
+ ? job . data . applyURL
66
+ : `${ CONFIG . jobsURL } /api/apply?id=${ job . ref . id } `
67
+ }
64
68
target = "_blank"
65
69
rel = "noopener noreferrer"
66
70
clickable
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ type CurrentWidget = 'jobsSubscribe' | 'books' | 'jobs' | 'hire'
10
10
export const Widget = ( ) => {
11
11
const [
12
12
currentWidget /*, setCurrentWidget */ ,
13
- ] = useState < null | CurrentWidget > ( 'hire ' )
13
+ ] = useState < null | CurrentWidget > ( 'jobs ' )
14
14
// useEffect(
15
15
// () => {
16
16
// setCurrentWidget(Math.random() > 0.75 ? 'jobsSubscribe' : 'jobs')
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ interface Job {
17
17
featuredUntil : string
18
18
descriptionHTML : string
19
19
featured : boolean
20
+ directApply ?: boolean
21
+ applyURL ?: string
20
22
companyName : string
21
23
engagmentType : string
22
24
sourceURL : string
You can’t perform that action at this time.
0 commit comments