diff --git a/src/lib/components/KcApp.tsx b/src/lib/components/KcApp.tsx index 0f88c492..0cee851d 100644 --- a/src/lib/components/KcApp.tsx +++ b/src/lib/components/KcApp.tsx @@ -21,7 +21,7 @@ const LoginIdpLinkEmail = lazy(() => import("./LoginIdpLinkEmail")); const LoginConfigTotp = lazy(() => import("./LoginConfigTotp")); const LogoutConfirm = lazy(() => import("./LogoutConfirm")); -const KcApp = memo(({ kcContext, i18n: userProvidedI18n, ...props }: { kcContext: KcContextBase; i18n?: I18n } & KcProps) => { +const KcApp = memo(({ kcContext, i18n: userProvidedI18n, ...kcProps }: { kcContext: KcContextBase; i18n?: I18n } & KcProps) => { const i18n = (function useClosure() { const i18n = useI18n({ kcContext, @@ -36,42 +36,44 @@ const KcApp = memo(({ kcContext, i18n: userProvidedI18n, ...props }: { kcContext return null; } + const props = { i18n, ...kcProps }; + return ( {(() => { switch (kcContext.pageId) { case "login.ftl": - return ; + return ; case "register.ftl": - return ; + return ; case "register-user-profile.ftl": - return ; + return ; case "info.ftl": - return ; + return ; case "error.ftl": - return ; + return ; case "login-reset-password.ftl": - return ; + return ; case "login-verify-email.ftl": - return ; + return ; case "terms.ftl": - return ; + return ; case "login-otp.ftl": - return ; + return ; case "login-update-password.ftl": - return ; + return ; case "login-update-profile.ftl": - return ; + return ; case "login-idp-link-confirm.ftl": - return ; + return ; case "login-idp-link-email.ftl": - return ; + return ; case "login-page-expired.ftl": - return ; + return ; case "login-config-totp.ftl": - return ; + return ; case "logout-confirm.ftl": - return ; + return ; } })()}