Skip to content

Commit 0400775

Browse files
committed
Make signup link a prop in sponsor-tiers component
1 parent 5566f1a commit 0400775

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

src/components/sponsor-tiers/sponsor-tiers.astro

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ import { Title } from "../typography/title";
33
import Ribbon from "./ribbon.astro";
44
import ButtonLink from "../button-link/button-link.astro"
55
6+
interface Props {
7+
signupLink: string;
8+
}
9+
10+
const { signupLink = "#" } = Astro.props;
11+
612
interface SponsorTierProps {
713
title: string;
814
totalSlots?: number | null | string;
@@ -200,7 +206,7 @@ const formatPrice = (price: number | string) => {
200206
))}
201207
</ul>
202208
<div class="absolute bottom-4 right-4">
203-
<ButtonLink url="undefined">Sign Up Now!</ButtonLink>
209+
<ButtonLink url={signupLink}>Sign Up Now!</ButtonLink>
204210
</div>
205211

206212
</div>
@@ -248,8 +254,8 @@ const formatPrice = (price: number | string) => {
248254
))}
249255
</ul>
250256
<div class="absolute bottom-4 right-4">
251-
<ButtonLink url="undefined">Sign Up Now!</ButtonLink>
252-
</div>
257+
<ButtonLink url={signupLink}>Sign Up Now!</ButtonLink>
258+
</div>
253259
</div>
254260
))}
255261
</div>
@@ -294,8 +300,8 @@ const formatPrice = (price: number | string) => {
294300
))}
295301
</ul>
296302
<div class="absolute bottom-4 right-4">
297-
<ButtonLink url="undefined">Sign Up Now!</ButtonLink>
298-
</div>
303+
<ButtonLink url={signupLink}>Sign Up Now!</ButtonLink>
304+
</div>
299305
</div>
300306
))}
301307
</div>

src/content/pages/sponsorship/sponsor.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ supporting the Python community is accessible for organisations of all sizes.
5252
</div>
5353

5454

55-
<SponsorTiers />
56-
55+
<SponsorTiers signupLink="undefined" />
5756

5857
## Optional Add-ons
5958

0 commit comments

Comments
 (0)