Skip to content

Commit

Permalink
feat:to whomesoever added to letter
Browse files Browse the repository at this point in the history
  • Loading branch information
anshuman-8 committed Dec 31, 2022
1 parent 8ad2d9b commit 634e956
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions pages/admin/company-letter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ const CompanyLetter = React.forwardRef<HTMLDivElement>(function InternshipLetter

if (isDataRecieved && data) {
let member = internshipdata["member"] == null ? null : JSON.parse(internshipdata["member"]);
console.log("member", internshipdata);

return (
<div className="mx-auto max-w-4xl text-[15px] font-sans relative bg-white" ref={ref} style={{width: 780.7007874, height:1050.519685}}>
<div className="mt-0 mb-0 text-center">
Expand All @@ -99,12 +101,21 @@ const CompanyLetter = React.forwardRef<HTMLDivElement>(function InternshipLetter
<div className='px-4 sm:px-8 mt-10 mb-5' >
<div className="text-sm text-right mx-8 mb-5">{new Date().toLocaleDateString()}</div>
<div className='my-5'>
<p>{internshipdata["company_person_name"]}</p>
<p>{internshipdata["company_name"]}</p>
{/* <p>Designation</p> */}
<p>{internshipdata["company_location"]}</p>
{
internshipdata["company_person_name"] == "Whomsoever it may concern"?(
<>
<p className='text-center font-semibold py-4'>To whomsoever it may concern</p>
</>
):(<>
<p>{internshipdata["company_person_name"]}</p>
<p>{internshipdata["company_name"]}</p>
{/* <p>Designation</p> */}
<p>{internshipdata["company_location"]}</p>
</>)
}

</div>
<div className='my-5 font-medium'>
<div className='my-5 font-semibold'>
<p>Sub: - Request for Internship for {username["course"]} student.</p>
</div>
<div className='my-5'>
Expand All @@ -114,7 +125,7 @@ const CompanyLetter = React.forwardRef<HTMLDivElement>(function InternshipLetter
{username["school"]} is one of the several professional institutions under Amrita Vishwa
Vidyapeetham, established under section 3 of the UGC Act, 1956. {username["course"]} students
studying in {username["school"] === "Amrita School Of Arts and Science" && (<>ASAS</>)} are advised to do Internship in reputed organizations. This will give them some practical
experience which will contribute substantially to their learning process
experience which will contribute substantially to their learning process.
</div>

<div>
Expand Down

0 comments on commit 634e956

Please sign in to comment.