Skip to content

Commit d2929a3

Browse files
heydoyouknowme0geekysilento
authored andcommitted
temp:linked in
1 parent 0a3324e commit d2929a3

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

app/[locale]/faculty-and-staff/utils.tsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export async function FacultyOrStaffComponent({
5353
!employeeId ? eq(faculty.id, id!) : eq(faculty.employeeId, employeeId),
5454
columns: {
5555
id: true,
56+
employeeId: true,
5657
officeAddress: true,
5758
designation: true,
5859
googleScholarId: true,
@@ -173,13 +174,21 @@ export async function FacultyOrStaffComponent({
173174
<Link
174175
key={key}
175176
className="flex aspect-square flex-col justify-evenly rounded-2xl bg-shade-light drop-shadow-[0_4px_24px_rgba(0,43,91,0.1)] md:w-[23%] lg:w-[20%]"
176-
// @ts-expect-error - Ignore type checking for key
177-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
178-
href={faculty[value] ?? ''}
177+
href={
178+
key == 'Orcid'
179+
? faculty.employeeId === '114'
180+
? 'https://in.linkedin.com/in/jitender-kumar-chhabra-372b871'
181+
: faculty.employeeId === '1083'
182+
? 'https://in.linkedin.com/in/vikram-singh-802827166'
183+
: ''
184+
: // @ts-expect-error - Ignore type checking for key
185+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
186+
faculty[value] ?? ''
187+
}
179188
>
180189
<Image
181190
alt={key}
182-
src={`faculty-and-staff/${key}.svg`}
191+
src={`faculty-and-staff/${(faculty.employeeId === '114' || faculty.employeeId === '1083') && key == 'Orcid' ? 'LinkedIn' : key}.svg`}
183192
height={0}
184193
width={0}
185194
className="mx-auto h-[50%] w-[50%]"

0 commit comments

Comments
 (0)