|
|
|
@ -65,7 +65,7 @@ export default function ProfileHeader({
|
|
|
|
|
{ profileId: offerProfileId as string, userId: session?.user?.id },
|
|
|
|
|
],
|
|
|
|
|
{
|
|
|
|
|
onSuccess: (res) => {
|
|
|
|
|
onSuccess: (res: boolean) => {
|
|
|
|
|
setSaved(res);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -233,29 +233,25 @@ export default function ProfileHeader({
|
|
|
|
|
const { experiences, totalYoe, specificYoes, profileName } = background;
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="h-40 bg-white p-4">
|
|
|
|
|
<div className="justify-left flex h-1/2">
|
|
|
|
|
<div className="mx-4 mt-2 h-16 w-16">
|
|
|
|
|
<div className="grid-rows-2 bg-white p-4">
|
|
|
|
|
<div className="flex grid grid-cols-5 md:grid-cols-7">
|
|
|
|
|
<div className="jsutify-start col-span-5 flex">
|
|
|
|
|
<div className="ml-0 mr-2 mt-2 h-16 w-16 md:mx-4">
|
|
|
|
|
<ProfilePhotoHolder />
|
|
|
|
|
</div>
|
|
|
|
|
<div className="w-full">
|
|
|
|
|
<div className="justify-left flex flex-1">
|
|
|
|
|
<h2 className="flex w-4/5 text-2xl font-bold">
|
|
|
|
|
<div>
|
|
|
|
|
<h2 className="flex text-2xl font-bold">
|
|
|
|
|
{profileName ?? 'anonymous'}
|
|
|
|
|
</h2>
|
|
|
|
|
{isEditable && (
|
|
|
|
|
<div className="flex h-8 w-1/5 justify-end">
|
|
|
|
|
{renderActionList()}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
{(experiences[0]?.companyName ||
|
|
|
|
|
experiences[0]?.jobLevel ||
|
|
|
|
|
experiences[0]?.jobTitle) && (
|
|
|
|
|
<div className="flex flex-row">
|
|
|
|
|
<BuildingOffice2Icon className="mr-2.5 h-5" />
|
|
|
|
|
<span className="mr-2 font-bold">Current:</span>
|
|
|
|
|
<span>
|
|
|
|
|
<BuildingOffice2Icon className="mr-2.5 h-5 w-5" />
|
|
|
|
|
</span>
|
|
|
|
|
<p>
|
|
|
|
|
<span className="mr-2 font-bold">Current:</span>
|
|
|
|
|
{`${experiences[0].companyName || ''} ${
|
|
|
|
|
experiences[0].jobLevel || ''
|
|
|
|
|
} ${experiences[0].jobTitle || ''} ${
|
|
|
|
@ -263,11 +259,12 @@ export default function ProfileHeader({
|
|
|
|
|
? `(${JobTypeLabel[experiences[0].jobType]})`
|
|
|
|
|
: ''
|
|
|
|
|
}`}
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
<div className="flex flex-row">
|
|
|
|
|
<CalendarDaysIcon className="mr-2.5 h-5" />
|
|
|
|
|
<p>
|
|
|
|
|
<span className="mr-2 font-bold">YOE:</span>
|
|
|
|
|
<span className="mr-4">{totalYoe}</span>
|
|
|
|
|
{specificYoes &&
|
|
|
|
@ -279,11 +276,17 @@ export default function ProfileHeader({
|
|
|
|
|
className="mr-4">{`${domain}: ${yoe}`}</span>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="mt-8">
|
|
|
|
|
{isEditable && (
|
|
|
|
|
<div className="col-span-2 col-end-6 flex h-8 justify-end md:col-end-8 md:pt-0">
|
|
|
|
|
{renderActionList()}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
<div className="mt-4">
|
|
|
|
|
<Tabs
|
|
|
|
|
label="Profile Detail Navigation"
|
|
|
|
|
tabs={profileDetailTabs}
|
|
|
|
|