@@ -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 ,
@@ -136,7 +137,11 @@ export async function FacultyOrStaffComponent({
136137 width = { 200 }
137138 height = { 200 }
138139 className = "absolute z-10 size-48 translate-x-[-50%] translate-y-[-50%] rounded-full border-[16px] border-background object-cover"
139- src = { `fallback/user-image.jpg` }
140+ src = {
141+ faculty . employeeId === '114' || faculty . employeeId === '1083'
142+ ? `faculty-and-staff/${ faculty . employeeId } /0.jpg`
143+ : `fallback/user-image.jpg`
144+ }
140145 />
141146 </ section >
142147 < article className = "rounded-2xl drop-shadow-[0_4px_24px_rgba(0,43,91,0.1)] max-xl:pt-3 xl:bg-shade-light xl:p-5" >
@@ -173,18 +178,30 @@ export async function FacultyOrStaffComponent({
173178 < Link
174179 key = { key }
175180 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 ] ?? '' }
181+ href = {
182+ key == 'Orcid'
183+ ? faculty . employeeId === '114'
184+ ? 'https://in.linkedin.com/in/jitender-kumar-chhabra-372b871'
185+ : faculty . employeeId === '1083'
186+ ? 'https://in.linkedin.com/in/vikram-singh-802827166'
187+ : ''
188+ : ( faculty [ value as keyof typeof faculty ] as string ) ?? ''
189+ }
179190 >
180191 < Image
181192 alt = { key }
182- src = { `faculty-and-staff/${ key } .svg` }
193+ src = { `faculty-and-staff/${ ( faculty . employeeId === '114' || faculty . employeeId === '1083' ) && key == 'Orcid' ? 'LinkedIn' : key } .svg` }
183194 height = { 0 }
184195 width = { 0 }
185196 className = "mx-auto h-[50%] w-[50%]"
186197 />
187- < h5 className = "mx-auto" > { key } </ h5 >
198+ < h5 className = "mx-auto" >
199+ { ( faculty . employeeId === '114' ||
200+ faculty . employeeId === '1083' ) &&
201+ key == 'Orcid'
202+ ? 'LinkedIn'
203+ : key }
204+ </ h5 >
188205 </ Link >
189206 ) ;
190207 }
0 commit comments