Skip to content

Commit 7a9f947

Browse files
Merge pull request #167 from HaudinFlorence/fix_social_media_icons_conditional_rendering
Add conditions on rendering the social media icons on the portrait cards
2 parents 212d888 + 96525bc commit 7a9f947

File tree

2 files changed

+30
-16
lines changed

2 files changed

+30
-16
lines changed

src/components/about/SocialMediaContacts.tsx

+17-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,23 @@ export default function SocialMediaContacts({ person }) {
88
return (
99
<>
1010
<div className="flex-full-centered">
11-
<Link href={person.githubLink}>{<GHPicture />}</Link>
12-
<Link href={person.LinkedInLink}>{<LinkedInPicture />}</Link>
13-
<Link href={person.XLink}>{<XPicture />}</Link>
11+
<div>
12+
{person.onGithub === "true" ? (
13+
<Link href={person.githubLink}>{<GHPicture />}</Link>
14+
) : (
15+
null
16+
)}
17+
</div>
18+
{person.onLinkedIn === "true" ? (
19+
<Link href={person.LinkedInLink}>{<LinkedInPicture />}</Link>
20+
) : (
21+
null
22+
)}
23+
{person.onX === "true" ? (
24+
<Link href={person.XLink}>{<XPicture />}</Link>
25+
) : (
26+
null
27+
)}
1428
</div>
1529
<div className="flex-full-centered">
1630
<Link href={person.githubLink} className={styles.githubname}>

src/components/about/Team/team.ts

+13-13
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export const coreTeam = [
164164
firstName: "Nicolas",
165165
position: "Scientific Software Developer",
166166
onGithub: "true",
167-
onLinkednIn: "true",
167+
onLinkedIn: "true",
168168
onX: "false",
169169
githubLink: "https://github.com/brichet",
170170
LinkedInLink: "https://www.linkedin.com/in/nicolas-brichet-a26369150/",
@@ -181,7 +181,7 @@ export const coreTeam = [
181181
firstName: "Isabel",
182182
position: "Scientific Software Developer",
183183
onGithub: "true",
184-
onLinkednIn: "true",
184+
onLinkedIn: "true",
185185
onX: "false",
186186
githubLink: "https://github.com/ihuicatl",
187187
LinkedInLink: "https://www.linkedin.com/in/isabel-paredes/",
@@ -198,7 +198,7 @@ export const coreTeam = [
198198
firstName: "Gabriela",
199199
position: "User Experience Researcher and Designer",
200200
onGithub: "true",
201-
onLinkednIn: "true",
201+
onLinkedIn: "true",
202202
onX: "false",
203203
githubLink: "https://github.com/GabrielaVives",
204204
LinkedInLink: "https://www.linkedin.com/in/gabriela-vives-831ba853/",
@@ -215,7 +215,7 @@ export const coreTeam = [
215215
firstName: "Hind",
216216
position: "Scientific Software Developer",
217217
onGithub: "true",
218-
onLinkednIn: "true",
218+
onLinkedIn: "true",
219219
onX: "false",
220220
githubLink: "https://github.com/Hind-M",
221221
LinkedInLink: "https://www.linkedin.com/in/hindmontassif/",
@@ -232,7 +232,7 @@ export const coreTeam = [
232232
firstName: "Julien",
233233
position: "Scientific Software Developer",
234234
onGithub: "true",
235-
onLinkednIn: "true",
235+
onLinkedIn: "true",
236236
onX: "true",
237237
githubLink: "https://github.com/jjerphan",
238238
LinkedInLink: "https://www.linkedin.com/in/jjerphan/",
@@ -249,7 +249,7 @@ export const coreTeam = [
249249
firstName: "Anutosh",
250250
position: "Scientific Software Development Intern",
251251
onGithub: "true",
252-
onLinkednIn: "true",
252+
onLinkedIn: "true",
253253
onX: "false",
254254
githubLink: "https://github.com/anutosh491",
255255
LinkedInLink: "https://www.linkedin.com/in/anutosh-bhat-66ba961a8/",
@@ -266,7 +266,7 @@ export const coreTeam = [
266266
firstName: "Greg",
267267
position: "Scientific Software Developer",
268268
onGithub: "true",
269-
onLinkednIn: "true",
269+
onLinkedIn: "true",
270270
onX: "false",
271271
githubLink: "https://github.com/gjmooney",
272272
LinkedInLink: "https://www.linkedin.com/in/gjmooney/",
@@ -283,7 +283,7 @@ export const coreTeam = [
283283
firstName: "Ian",
284284
position: "Scientific Software Developer",
285285
onGithub: "true",
286-
onLinkednIn: "true",
286+
onLinkedIn: "true",
287287
onX: "false",
288288
githubLink: "https://github.com/ianthomas23",
289289
LinkedInLink: "https://www.linkedin.com/in/ian-thomas-796814240/",
@@ -299,7 +299,7 @@ export const coreTeam = [
299299
completeName: "Meriem Ben Ismail",
300300
firstName: "Meriem",
301301
position: " Scientific Software Development Intern",
302-
onLinkednIn: "true",
302+
onLinkedIn: "true",
303303
onGithub: "true",
304304
onX: "false",
305305
githubLink: "https://github.com/Meriem-BenIsmail",
@@ -316,7 +316,7 @@ export const coreTeam = [
316316
completeName: "Alexis Placet",
317317
firstName: "Alexis",
318318
position: " Scientific Software Developer",
319-
onLinkednIn: "true",
319+
onLinkedIn: "true",
320320
onGithub: "true",
321321
onX: "false",
322322
githubLink: "https://github.com/Alex-PLACET",
@@ -333,7 +333,7 @@ export const coreTeam = [
333333
completeName: "Anastasiia Sliusar",
334334
firstName: "Anastasiia",
335335
position: " Scientific Software Developer",
336-
onLinkednIn: "true",
336+
onLinkedIn: "true",
337337
onGithub: "true",
338338
onX: "false",
339339
githubLink: "https://github.com/AnastasiaSliusar",
@@ -350,7 +350,7 @@ export const coreTeam = [
350350
completeName: "Arjun Verma",
351351
firstName: "Arjun",
352352
position: " Scientific Software Development Intern",
353-
onLinkednIn: "true",
353+
onLinkedIn: "true",
354354
onGithub: "true",
355355
onX: "true",
356356
githubLink: "https://github.com/arjxn-py",
@@ -368,7 +368,7 @@ export const coreTeam = [
368368
completeName: "Antoine Pitrou",
369369
firstName: "Antoine",
370370
position: " Senior Software Developer",
371-
onLinkednIn: "true",
371+
onLinkedIn: "true",
372372
onGithub: "true",
373373
onX: "false",
374374
githubLink: "https://github.com/pitrou",

0 commit comments

Comments
 (0)