From fe2784179b43dbb2e9a24e4ef62dc6d294e6db69 Mon Sep 17 00:00:00 2001 From: Frederik Rothenberger Date: Wed, 20 Sep 2023 17:41:45 +0200 Subject: [PATCH] Add temp key warning to registration success screen (#1916) * Add temp key warning to registration success screen This adds the temp key warning also to the registration success page. * Rename slot to marketingIntroSlot --- src/frontend/src/flows/register/finish.ts | 6 ++++++ src/frontend/src/flows/register/index.ts | 6 ++++++ src/showcase/src/pages/[page].astro | 1 + src/showcase/src/showcase.ts | 9 +++++++++ 4 files changed, 22 insertions(+) diff --git a/src/frontend/src/flows/register/finish.ts b/src/frontend/src/flows/register/finish.ts index 0ff357148b..784928878b 100644 --- a/src/frontend/src/flows/register/finish.ts +++ b/src/frontend/src/flows/register/finish.ts @@ -21,12 +21,14 @@ export const displayUserNumberTemplate = ({ userNumber, identityBackground, stepper, + marketingIntroSlot, scrollToTop = false, }: { onContinue: () => void; userNumber: bigint; identityBackground: IdentityBackground; stepper: TemplateResult; + marketingIntroSlot?: TemplateResult; /* put the page into view */ scrollToTop?: boolean; }) => { @@ -84,6 +86,7 @@ export const displayUserNumberTemplate = ({ I saved it, continue
+ ${marketingIntroSlot}