From f9c41b60201355eea4bdde5153a91d4b5c7144de Mon Sep 17 00:00:00 2001 From: Phil Ewels Date: Mon, 11 Mar 2024 00:17:12 +0100 Subject: [PATCH] Fix ambassador typing --- src/components/AmbassadorCard.astro | 30 ++++++++++++++++++++++++----- src/pages/our_ambassadors.astro | 9 ++++++++- src/pages/podcasts/index.astro | 2 +- 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/src/components/AmbassadorCard.astro b/src/components/AmbassadorCard.astro index 888b7aa0..4aaf3c84 100644 --- a/src/components/AmbassadorCard.astro +++ b/src/components/AmbassadorCard.astro @@ -4,11 +4,12 @@ export interface Props { img: string; country: string; github: string; - linkedin: string; - twitter: string; + linkedin?: string; + twitter?: string; + mastodon?: string; } -const { name, img, country, github, linkedin, twitter } = Astro.props; +const { name, img, country, github, linkedin, twitter, mastodon } = Astro.props; ---
@@ -23,8 +24,27 @@ const { name, img, country, github, linkedin, twitter } = Astro.props;
- - + { + linkedin && ( + + + + ) + } + { + twitter && ( + + + + ) + } + { + mastodon && ( + + + + ) + }

diff --git a/src/pages/our_ambassadors.astro b/src/pages/our_ambassadors.astro index 56106a4d..953d00d2 100644 --- a/src/pages/our_ambassadors.astro +++ b/src/pages/our_ambassadors.astro @@ -171,7 +171,14 @@ import AmbassadorCard from "@components/AmbassadorCard.astro"; > member of nf-core. - + Friederike Hanssen... diff --git a/src/pages/podcasts/index.astro b/src/pages/podcasts/index.astro index 1e0ced92..ff2e4be6 100644 --- a/src/pages/podcasts/index.astro +++ b/src/pages/podcasts/index.astro @@ -39,7 +39,7 @@ const dateString = (d: Date) => {