Skip to content

Add conditions on rendering the social media icons on the portrait cards #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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