@@ -10,7 +10,6 @@ import { FcGoogle } from 'react-icons/fc';
1010
1111const SingleJobPostDetails = ( props : any ) => {
1212 const { fetchSingleJobPostStates } = props ;
13- console . log ( "fetchSingleJobPostStates:" , fetchSingleJobPostStates ) ;
1413 const dispatch = useAppDispatch ( ) ;
1514 const params = useParams ( ) ;
1615 const [ jobPostId , setjobPostId ] = useState ( params . id ) ;
@@ -22,16 +21,12 @@ const SingleJobPostDetails = (props: any) => {
2221 const shareMessage = `Check out this job opportunity: ${ fetchSingleJobPostStates ?. data ?. title } \n${ window . location . href } ` ;
2322
2423 const shareOnTwitterDM = ( ) => {
25- const url = `https://twitter.com/messages/compose?text=${ encodeURIComponent (
26- shareMessage
27- ) } `;
24+ const url = `https://twitter.com/messages/compose?text=${ encodeURIComponent ( shareMessage ) } ` ;
2825 window . open ( url , "_blank" , "width=600,height=400" ) ;
2926 } ;
3027
3128 const shareOnWhatsApp = ( ) => {
32- const url = `https://api.whatsapp.com/send?text=${ encodeURIComponent (
33- shareMessage
34- ) } `;
29+ const url = `https://api.whatsapp.com/send?text=${ encodeURIComponent ( shareMessage ) } ` ;
3530 window . open ( url , "_blank" , "width=600,height=400" ) ;
3631 } ;
3732
@@ -41,9 +36,7 @@ const SingleJobPostDetails = (props: any) => {
4136 } ;
4237
4338 const shareOnLinkedIn = ( ) => {
44- const url = `https://www.linkedin.com/sharing/share-offsite/?url=${ encodeURIComponent (
45- window . location . href
46- ) } `;
39+ const url = `https://www.linkedin.com/sharing/share-offsite/?url=${ encodeURIComponent ( window . location . href ) } ` ;
4740 window . open ( url , "_blank" ) ;
4841 } ;
4942
@@ -67,73 +60,47 @@ const SingleJobPostDetails = (props: any) => {
6760 < >
6861 < div className = "flex flex-col" >
6962 < h3 className = "text-white" > Job title</ h3 >
70- < p className = "text-gray-500 text-sm dark:text-gray-400" >
71- { fetchSingleJobPostStates . data . title }
72- </ p >
63+ < p className = "text-gray-500 text-sm dark:text-gray-400" > { fetchSingleJobPostStates . data . title } </ p >
7364 </ div >
7465 < div className = "flex flex-col" >
7566 < h3 className = "text-white" > Program</ h3 >
76- < p className = "text-gray-500 text-sm dark:text-gray-400" >
77- { fetchSingleJobPostStates . data . program . title }
78- </ p >
67+ < p className = "text-gray-500 text-sm dark:text-gray-400" > { fetchSingleJobPostStates . data . program . title } </ p >
7968 </ div >
8069 < div className = "flex flex-col" >
8170 < h3 className = "text-white" > Cycle</ h3 >
82- < p className = "text-gray-500 text-sm dark:text-gray-400" >
83- { fetchSingleJobPostStates . data . cycle . name }
84- </ p >
71+ < p className = "text-gray-500 text-sm dark:text-gray-400" > { fetchSingleJobPostStates . data . cycle . name } </ p >
8572 </ div >
8673 < div className = "flex flex-col" >
8774 < h3 className = "text-white" > Cohort</ h3 >
88- < p className = "text-gray-500 text-sm dark:text-gray-400" >
89- { fetchSingleJobPostStates . data . cohort . title }
90- </ p >
75+ < p className = "text-gray-500 text-sm dark:text-gray-400" > { fetchSingleJobPostStates . data . cohort . title } </ p >
9176 </ div >
9277 < div className = "flex flex-col" >
9378 < h3 className = "text-white" > Program description</ h3 >
94- < p className = "text-gray-500 text-sm dark:text-gray-400" >
95- { fetchSingleJobPostStates . data . description }
96- </ p >
79+ < p className = "text-gray-500 text-sm dark:text-gray-400" > { fetchSingleJobPostStates . data . description } </ p >
9780 </ div >
9881 < div className = "text-white" > Share Job Post</ div >
9982 < div className = "flex fle gap-4 mt-6" >
100- < button
101- onClick = { shareOnTwitterDM }
102- className = "flex items-center gap-2 px-4 py-2 bg-blue-400 text-white rounded hover:bg-blue-500 transition-colors"
103- >
83+ < button onClick = { shareOnTwitterDM } className = "flex items-center gap-2 px-4 py-2 bg-blue-400 text-white rounded hover:bg-blue-500 transition-colors" >
10484 < FaTwitter />
10585 </ button >
106- < button
107- onClick = { shareOnWhatsApp }
108- className = "flex items-center gap-2 px-4 py-2 bg-green text-white rounded hover:bg-green-600 transition-colors"
109- >
86+ < button onClick = { shareOnWhatsApp } className = "flex items-center gap-2 px-4 py-2 bg-green text-white rounded hover:bg-green-600 transition-colors" >
11087 < FaWhatsapp />
11188 </ button >
112- < button
113- onClick = { shareOnTelegram }
114- className = "flex items-center gap-2 px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 transition-colors"
115- >
89+ < button onClick = { shareOnTelegram } className = "flex items-center gap-2 px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 transition-colors" >
11690 < FaTelegram />
11791 </ button >
118- < button
119- onClick = { shareOnLinkedIn }
120- className = "flex items-center gap-2 px-4 py-2 bg-blue-800 text-white rounded hover:bg-blue-900 transition-colors"
121- >
92+ < button onClick = { shareOnLinkedIn } className = "flex items-center gap-2 px-4 py-2 bg-blue-800 text-white rounded hover:bg-blue-900 transition-colors" >
12293 < FaLinkedin />
12394 </ button >
124- < button
125- onClick = { shareOnGmail }
126- className = "flex items-center justify-center gap-2 px-4 py-2 bg-white text-gray-700 rounded hover:bg-gray-100 transition-colors"
127- >
95+ < button onClick = { shareOnGmail } className = "flex items-center justify-center gap-2 px-4 py-2 bg-white text-gray-700 rounded hover:bg-gray-100 transition-colors" >
12896 < FcGoogle size = { 20 } />
12997 </ button >
13098 </ div >
13199 </ >
132100 ) }
133101 </ div >
134102 </ div >
135- </ div >
136-
103+ </ div >
137104 </ >
138105 ) ;
139106} ;
0 commit comments