@@ -8,7 +8,7 @@ import { capitalize } from "../../../utils/utils"
88
99
1010
11- export const ListDashBoardCard = ( { lists, activeTab, skillsOffer, colors, fadedColors, textColors, changeStatusCandidate, offerId, openChat, handlerDownloadCV , handlerDownloadCoverLetter } ) => {
11+ export const ListDashBoardCard = ( { lists, activeTab, skillsOffer, colors, fadedColors, textColors, changeStatusCandidate, offerId, openChat, handleDownloadCV , handleDownloadCoverLetter } ) => {
1212
1313
1414
@@ -22,7 +22,7 @@ export const ListDashBoardCard = ({lists, activeTab, skillsOffer, colors, fadedC
2222 const surname = capitalize ( candidato ?. user ?. surname || '' ) ;
2323 const completeName = `${ name } ${ surname } ` . trim ( ) || 'Unknown Profile' ;
2424 const isResume = candidato ?. user ?. role ?. developer ?. resume ;
25- const isCoverLetter = ( candidato ?. user ?. role ?. developer ?. coverLetter ?. length ?? 0 ) >= 5 ;
25+ const isCoverLetter = ( candidato ?. coverLetter ?. length ?? 0 ) >= 5 ;
2626 return (
2727 < div key = { candidato . _id } className = "bg-neutral-80 p-4 gap-2 rounded-lg shadow-sm border border-neutral-60 flex flex-col" >
2828 < div
@@ -95,7 +95,7 @@ export const ListDashBoardCard = ({lists, activeTab, skillsOffer, colors, fadedC
9595
9696 < button
9797 onClick = { ( ) =>
98- handlerDownloadCV (
98+ handleDownloadCV (
9999 candidato . user . role . developer . resume ,
100100 `${ completeName } _CV.pdf`
101101 )
@@ -105,7 +105,7 @@ export const ListDashBoardCard = ({lists, activeTab, skillsOffer, colors, fadedC
105105 < PiReadCvLogo size = { 20 } />
106106 </ button >
107107 < button
108- onClick = { ( ) => handlerDownloadCoverLetter ( offerId , candidato . _id ) }
108+ onClick = { ( ) => handleDownloadCoverLetter ( offerId , candidato . _id ) }
109109 className = { `btn btn-md bg-neutral-90 hover:bg-neutral-60 ${ ! isCoverLetter && 'btn-disabled' } ` }
110110 >
111111 < PiFileArrowDown size = { 20 } />
0 commit comments