passing file as prop in react typescript (Type 'true' is not assignable to type 'ChangeEventHandler<HTMLInputElement>)

Remove the == and replace with =, you want to assign and not compare:

onChange=={upload_id_card}