From 581ffcff6ea71fbd640d62cfee181a0b1658b9f4 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Sat, 27 Jul 2024 17:36:39 +0200 Subject: [PATCH] Update kc.gen --- src/kc.gen.tsx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/kc.gen.tsx b/src/kc.gen.tsx index b9240c3..b9ee6b7 100644 --- a/src/kc.gen.tsx +++ b/src/kc.gen.tsx @@ -20,7 +20,9 @@ export const kcEnvNames: KcEnvName[] = []; export const kcEnvDefaults: Record = {}; -type KcContext = import("./login/KcContext").KcContext; +type KcContext = + | import("./login/KcContext").KcContext + ; declare global { interface Window { @@ -30,18 +32,22 @@ declare global { export const KcLoginPage = lazy(() => import("./login/KcPage")); -export function KcPage(props: { kcContext: KcContext; fallback?: ReactNode }) { +export function KcPage( + props: { + kcContext: KcContext; + fallback?: ReactNode; + } +) { const { kcContext, fallback } = props; return ( {(() => { switch (kcContext.themeType) { - case "login": - return ; + case "login": return ; } })()} - ); + ) } /* prettier-ignore-end */