@@ -10,28 +10,30 @@ import TitleSection from "../../components/SectionTitle/TitleSection";
1010import { useWindowSize } from "react-use" ;
1111import data from "../../data/2023.json" ;
1212import {
13- Companies , CompanyNameLink , StyledLessIcon , StyledMoreIcon ,
14- StyledTitleContainer
13+ Companies ,
14+ CompanyNameLink ,
15+ StyledLessIcon ,
16+ StyledMoreIcon ,
17+ StyledTitleContainer ,
1518} from "../../styles/JobOffers/JobOffers.Style" ;
1619import CompanyOffers from "../../components/JobOffers/CompanyOffers" ;
20+ import { useDocumentTitleUpdater } from "../../hooks/useDocumentTitleUpdate" ;
1721
1822const NoOffersAvailable = ( ) => (
19- < h4 style = { { color : Color . DARK_BLUE } } > No job offers available yet</ h4 >
23+ < h4 style = { { color : Color . DARK_BLUE } } > No job offers available yet</ h4 >
2024) ;
2125
22- const MoreThanLessThan = ( props : { width : number } ) => (
23- < >
24- < StyledLessIcon src = { LessThanBlueIcon } />
25- < StyledMoreIcon src = { MoreThanBlueIcon } />
26+ const MoreThanLessThan = ( ) => (
27+ < >
28+ < StyledLessIcon src = { LessThanBlueIcon } />
29+ < StyledMoreIcon src = { MoreThanBlueIcon } />
2630 </ >
2731) ;
2832
2933const JobOffers2023 : FC < React . PropsWithChildren < unknown > > = ( ) => {
3034 const { width } = useWindowSize ( ) ;
3135
32- React . useEffect ( ( ) => {
33- document . title = `Job Offers - DevBcn - ${ data . edition } ` ;
34- } , [ ] ) ;
36+ useDocumentTitleUpdater ( "Job Offers" , data . edition ) ;
3537
3638 return (
3739 < SectionWrapper color = { Color . WHITE } marginTop = { 6 } paddingBottom = { 100 } >
@@ -43,7 +45,7 @@ const JobOffers2023: FC<React.PropsWithChildren<unknown>> = () => {
4345 color = { Color . BLACK_BLUE }
4446 />
4547 </ StyledTitleContainer >
46- { width > MOBILE_BREAKPOINT && < MoreThanLessThan width = { width } /> }
48+ { width > MOBILE_BREAKPOINT && < MoreThanLessThan /> }
4749 { ! data . jobOffers . enabled && < NoOffersAvailable /> }
4850 { data . jobOffers . enabled && (
4951 < div id = "job-offers" >
0 commit comments