Skip to content

Commit

Permalink
Merge pull request #167 from HaudinFlorence/fix_social_media_icons_co…
Browse files Browse the repository at this point in the history
…nditional_rendering

Add conditions on rendering the social media icons on the portrait cards
  • Loading branch information
SylvainCorlay authored Oct 24, 2024
2 parents 212d888 + 96525bc commit 7a9f947
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 16 deletions.
20 changes: 17 additions & 3 deletions src/components/about/SocialMediaContacts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,23 @@ export default function SocialMediaContacts({ person }) {
return (
<>
<div className="flex-full-centered">
<Link href={person.githubLink}>{<GHPicture />}</Link>
<Link href={person.LinkedInLink}>{<LinkedInPicture />}</Link>
<Link href={person.XLink}>{<XPicture />}</Link>
<div>
{person.onGithub === "true" ? (
<Link href={person.githubLink}>{<GHPicture />}</Link>
) : (
null
)}
</div>
{person.onLinkedIn === "true" ? (
<Link href={person.LinkedInLink}>{<LinkedInPicture />}</Link>
) : (
null
)}
{person.onX === "true" ? (
<Link href={person.XLink}>{<XPicture />}</Link>
) : (
null
)}
</div>
<div className="flex-full-centered">
<Link href={person.githubLink} className={styles.githubname}>
Expand Down
26 changes: 13 additions & 13 deletions src/components/about/Team/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export const coreTeam = [
firstName: "Nicolas",
position: "Scientific Software Developer",
onGithub: "true",
onLinkednIn: "true",
onLinkedIn: "true",
onX: "false",
githubLink: "https://github.com/brichet",
LinkedInLink: "https://www.linkedin.com/in/nicolas-brichet-a26369150/",
Expand All @@ -181,7 +181,7 @@ export const coreTeam = [
firstName: "Isabel",
position: "Scientific Software Developer",
onGithub: "true",
onLinkednIn: "true",
onLinkedIn: "true",
onX: "false",
githubLink: "https://github.com/ihuicatl",
LinkedInLink: "https://www.linkedin.com/in/isabel-paredes/",
Expand All @@ -198,7 +198,7 @@ export const coreTeam = [
firstName: "Gabriela",
position: "User Experience Researcher and Designer",
onGithub: "true",
onLinkednIn: "true",
onLinkedIn: "true",
onX: "false",
githubLink: "https://github.com/GabrielaVives",
LinkedInLink: "https://www.linkedin.com/in/gabriela-vives-831ba853/",
Expand All @@ -215,7 +215,7 @@ export const coreTeam = [
firstName: "Hind",
position: "Scientific Software Developer",
onGithub: "true",
onLinkednIn: "true",
onLinkedIn: "true",
onX: "false",
githubLink: "https://github.com/Hind-M",
LinkedInLink: "https://www.linkedin.com/in/hindmontassif/",
Expand All @@ -232,7 +232,7 @@ export const coreTeam = [
firstName: "Julien",
position: "Scientific Software Developer",
onGithub: "true",
onLinkednIn: "true",
onLinkedIn: "true",
onX: "true",
githubLink: "https://github.com/jjerphan",
LinkedInLink: "https://www.linkedin.com/in/jjerphan/",
Expand All @@ -249,7 +249,7 @@ export const coreTeam = [
firstName: "Anutosh",
position: "Scientific Software Development Intern",
onGithub: "true",
onLinkednIn: "true",
onLinkedIn: "true",
onX: "false",
githubLink: "https://github.com/anutosh491",
LinkedInLink: "https://www.linkedin.com/in/anutosh-bhat-66ba961a8/",
Expand All @@ -266,7 +266,7 @@ export const coreTeam = [
firstName: "Greg",
position: "Scientific Software Developer",
onGithub: "true",
onLinkednIn: "true",
onLinkedIn: "true",
onX: "false",
githubLink: "https://github.com/gjmooney",
LinkedInLink: "https://www.linkedin.com/in/gjmooney/",
Expand All @@ -283,7 +283,7 @@ export const coreTeam = [
firstName: "Ian",
position: "Scientific Software Developer",
onGithub: "true",
onLinkednIn: "true",
onLinkedIn: "true",
onX: "false",
githubLink: "https://github.com/ianthomas23",
LinkedInLink: "https://www.linkedin.com/in/ian-thomas-796814240/",
Expand All @@ -299,7 +299,7 @@ export const coreTeam = [
completeName: "Meriem Ben Ismail",
firstName: "Meriem",
position: " Scientific Software Development Intern",
onLinkednIn: "true",
onLinkedIn: "true",
onGithub: "true",
onX: "false",
githubLink: "https://github.com/Meriem-BenIsmail",
Expand All @@ -316,7 +316,7 @@ export const coreTeam = [
completeName: "Alexis Placet",
firstName: "Alexis",
position: " Scientific Software Developer",
onLinkednIn: "true",
onLinkedIn: "true",
onGithub: "true",
onX: "false",
githubLink: "https://github.com/Alex-PLACET",
Expand All @@ -333,7 +333,7 @@ export const coreTeam = [
completeName: "Anastasiia Sliusar",
firstName: "Anastasiia",
position: " Scientific Software Developer",
onLinkednIn: "true",
onLinkedIn: "true",
onGithub: "true",
onX: "false",
githubLink: "https://github.com/AnastasiaSliusar",
Expand All @@ -350,7 +350,7 @@ export const coreTeam = [
completeName: "Arjun Verma",
firstName: "Arjun",
position: " Scientific Software Development Intern",
onLinkednIn: "true",
onLinkedIn: "true",
onGithub: "true",
onX: "true",
githubLink: "https://github.com/arjxn-py",
Expand All @@ -368,7 +368,7 @@ export const coreTeam = [
completeName: "Antoine Pitrou",
firstName: "Antoine",
position: " Senior Software Developer",
onLinkednIn: "true",
onLinkedIn: "true",
onGithub: "true",
onX: "false",
githubLink: "https://github.com/pitrou",
Expand Down

0 comments on commit 7a9f947

Please sign in to comment.