Skip to content

Commit 8c22930

Browse files
authored
Show the jobs widget and enable direct apply (#211)
1 parent 29632c3 commit 8c22930

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/ui/components/JobsWidget/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ export const JobsWidget: FunctionComponent = () => {
6060
<Container>
6161
<Block
6262
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+
}
6468
target="_blank"
6569
rel="noopener noreferrer"
6670
clickable

src/ui/screens/Docs/Finder/Widget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type CurrentWidget = 'jobsSubscribe' | 'books' | 'jobs' | 'hire'
1010
export const Widget = () => {
1111
const [
1212
currentWidget /*, setCurrentWidget */,
13-
] = useState<null | CurrentWidget>('hire')
13+
] = useState<null | CurrentWidget>('jobs')
1414
// useEffect(
1515
// () => {
1616
// setCurrentWidget(Math.random() > 0.75 ? 'jobsSubscribe' : 'jobs')

src/utils/useJobs/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ interface Job {
1717
featuredUntil: string
1818
descriptionHTML: string
1919
featured: boolean
20+
directApply?: boolean
21+
applyURL?: string
2022
companyName: string
2123
engagmentType: string
2224
sourceURL: string

0 commit comments

Comments
 (0)