Skip to content

Commit 5650b6e

Browse files
fix: some of the linkedin/github links link to undefined
1 parent aa13671 commit 5650b6e

File tree

2 files changed

+26
-20
lines changed

2 files changed

+26
-20
lines changed

app/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export default function HomePage() {
5555
},
5656
{
5757
avatar: "/avatars/florian.webp",
58+
github: "FlorianDev",
5859
leads_project: "Vorstand",
60+
linkedin: "florian-schmidt-1965721b2",
5961
name: "Florian Schmidt",
6062
role: "Communication Lead",
6163
},

components/member.tsx

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,31 @@ export const Member: React.FC<MemberProps> = ({
4343
{leads_project}
4444
</p>
4545
<div className="flex justify-center space-x-3">
46-
<Link
47-
aria-label={`GitHub profile of ${name}`}
48-
className="dark:text-gray-400 text-gray-500 hover:dark:text-blue-400 transition-colors"
49-
href={`https://github.com/${github}`}
50-
>
51-
<Github className="w-4 h-4" />
52-
</Link>
53-
<Link
54-
aria-label={`LinkedIn profile of ${name}`}
55-
className="dark:text-gray-400 text-gray-500 hover:dark:text-blue-400 transition-colors"
56-
href={`https://linkedin.com/in/${linkedin}`}
57-
>
58-
<svg
59-
aria-hidden={true}
60-
className="w-4 h-4"
61-
fill="currentColor"
62-
viewBox="0 0 24 24"
46+
{github && (
47+
<Link
48+
aria-label={`GitHub profile of ${name}`}
49+
className="dark:text-gray-400 text-gray-500 hover:dark:text-blue-400 transition-colors"
50+
href={`https://github.com/${github}`}
6351
>
64-
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" />
65-
</svg>
66-
</Link>
52+
<Github className="w-4 h-4" />
53+
</Link>
54+
)}
55+
{linkedin && (
56+
<Link
57+
aria-label={`LinkedIn profile of ${name}`}
58+
className="dark:text-gray-400 text-gray-500 hover:dark:text-blue-400 transition-colors"
59+
href={`https://linkedin.com/in/${linkedin}`}
60+
>
61+
<svg
62+
aria-hidden={true}
63+
className="w-4 h-4"
64+
fill="currentColor"
65+
viewBox="0 0 24 24"
66+
>
67+
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" />
68+
</svg>
69+
</Link>
70+
)}
6771
</div>
6872
</CardContent>
6973
</Card>

0 commit comments

Comments
 (0)