File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -22,18 +22,26 @@ export default function Count(props: CountProps) {
22
22
23
23
getCount ( props . searchTerm . searchTerm , props . searchTerm . location ) ;
24
24
25
+ let url = `https://www.seek.co.nz/${
26
+ props . searchTerm . searchTerm . replace ( " " , "-" )
27
+ } -jobs/`;
28
+
29
+ props . searchTerm . location ? url += `in-${ props . searchTerm . location } ` : null ;
30
+
31
+ console . log ( url ) ;
32
+
25
33
return (
26
34
< div class = "my-2" >
27
35
< a
28
- href = { `https://www.seek.co.nz/ ${ props . searchTerm . searchTerm } -jobs/in- ${ props . searchTerm . location } ` }
36
+ href = { url }
29
37
target = "_blank"
30
38
>
31
39
{ props . searchTerm . searchTerm } jobs
32
40
{ props . searchTerm . location
33
41
? ` in ${ props . searchTerm . location } : `
34
42
: ` in NZ: ` }
35
43
{ count . value === ""
36
- ? < img class = " inline" src = "/3-dots-bounce.svg" alt = "loading..." />
44
+ ? < img class = "inline" src = "/3-dots-bounce.svg" alt = "loading..." />
37
45
: count . value || 0 }
38
46
</ a >
39
47
</ div >
You can’t perform that action at this time.
0 commit comments