@@ -728,9 +731,11 @@ console.log("list:", list);
{/* Action Buttons */}
-
- Register
-
+ {ctx.registrationUrl ? (
+
+ Register
+
+ ) : null}
Back to top
@@ -790,10 +795,12 @@ function SpeakersSection({ section, speakers }: { section: MicrositeSection; spe
}
function RegisterLinksSection({ section, ctx }: { section: MicrositeSection; ctx: Ctx }) {
+ if (!ctx.registrationUrl) return null;
+
const c = section.config;
const title = str(c.title, 'Register');
const primaryLabel = str(c.primaryLabel, 'Register Now');
- const primaryUrl = str(c.primaryUrl, ctx.registrationUrl);
+ const primaryUrl = ctx.registrationUrl;
const secondaryLabel = str(c.secondaryLabel);
const secondaryUrl = str(c.secondaryUrl, '#');
@@ -959,16 +966,18 @@ function CtaSection({ section, ctx }: { section: MicrositeSection; ctx: Ctx }) {
const headline = str(c.headline, 'Join us');
const subtext = str(c.subtext);
const buttonLabel = str(c.buttonLabel, 'Register');
- const buttonUrl = str(c.buttonUrl, ctx.registrationUrl);
+ const buttonUrl = resolveRegistrationCtaUrl(buttonLabel, c.buttonUrl, ctx.registrationUrl);
return (
);
@@ -1068,9 +1077,11 @@ function TicketsSection({ section, ctx }: { section: MicrositeSection; ctx: Ctx
{str(tier.name)}
{str(tier.price)}
{tier.description ?
{tier.description}
: null}
-
- Register
-
+ {ctx.registrationUrl ? (
+
+ Register
+
+ ) : null}