Skip to content

Commit aee9b8d

Browse files
authored
Community partner enable links (#1546)
fixes #1545 - URL: removed the tier !== 'Partners' restriction entirely as displaying the official website should be a baseline feature for all partners and sponsors. - Social links: Added an OR gate (tier !== 'Partners' || showLinks) to bypass the current restriction for Community Partners. Note: I chose an an override for the socials rather than removing the tier restriction altogether to avoid any unintended side effects. We can consider removing the tier-based logic entirely in a future cleanup.
1 parent 14c696a commit aee9b8d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/SponsorCard.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { sponsorLogos } from "@data/sponsorLogos";
55
import Icon from "@ui/Icon.astro";
66
import SocialLinks from "@components/SocialLinks.astro";
77
8-
const { sponsor: sponsorId, showJobs=false } = Astro.props;
8+
const { sponsor: sponsorId, showJobs=false, showLinks=true } = Astro.props;
99
const sponsor = await getEntry("sponsors", sponsorId);
1010
1111
if (!sponsor) {
@@ -100,7 +100,7 @@ const logo = sponsorLogos[sponsor.id];
100100
}
101101
<div>
102102

103-
{(tier !== "Partners") && website && (
103+
{website && (
104104
<div class="website-btn-container flex flex-col sm:flex-row justify-center gap-2 mt-4">
105105

106106
{ !isSponsorPage && sponsor.body && tier && ["Diamond", "Platinum"].includes(tier) &&
@@ -116,7 +116,7 @@ const logo = sponsorLogos[sponsor.id];
116116
)}
117117

118118

119-
{ (tier !== "Partners") &&
119+
{ (tier !== "Partners" || showLinks) &&
120120
<SocialLinks socials={socials} />
121121
}
122122
</div>

0 commit comments

Comments
 (0)