Skip to content

Commit

Permalink
update PersonCard null
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 committed Oct 8, 2023
1 parent 767bb8d commit c3e7666
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/components/people/person-card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,11 @@ const PersonCard = ({
<FaHome size="1.75rem" />
</Link>
) : null}

<Link href={`https://github.com/${githubUsername}`} target="_blank">
<FaGithub size="1.75rem" />
</Link>
{githubUsername ? (
<Link href={`https://github.com/${githubUsername}`} target="_blank">
<FaGithub size="1.75rem" />
</Link>
) : null}
</Links>
</Container>
)
Expand Down
8 changes: 6 additions & 2 deletions src/pages/people.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ const PeoplePage = () => {
.sort((a, b) => a.priority - b.priority)
.map(person => (
<PersonCard
image={`https://avatars.githubusercontent.com/${[person.github]}`}
image={
person.github_id
? `https://avatars.githubusercontent.com/${person.github_id}`
: "https://raw.githubusercontent.com/PoApper/poapper-asset/main/logo/logo.png"
}
name={person.name}
tags={person.tags}
text={person.text}
website={person.website}
githubUsername={person.github}
githubUsername={person.github_id}
badges={person.badge}
/>
))}
Expand Down

0 comments on commit c3e7666

Please sign in to comment.