From 5bf679eb30ab1f0bea25a4da7ae1c71a95bec7f7 Mon Sep 17 00:00:00 2001 From: garronej Date: Mon, 1 May 2023 23:44:16 +0200 Subject: [PATCH] Encouraging pepoles to use the default template as fallback is not a good default --- src/keycloak-theme/account/KcApp.tsx | 3 +-- src/keycloak-theme/login/KcApp.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/keycloak-theme/account/KcApp.tsx b/src/keycloak-theme/account/KcApp.tsx index 11a62a0..ae75c1d 100644 --- a/src/keycloak-theme/account/KcApp.tsx +++ b/src/keycloak-theme/account/KcApp.tsx @@ -5,7 +5,6 @@ import type { KcContext } from "./kcContext"; import { useI18n } from "./i18n"; const Template = lazy(() => import("./Template")); -const DefaultTemplate = lazy(() => import("keycloakify/account/Template")); const Password = lazy(() => import("./pages/Password")); const MyExtraPage1 = lazy(() => import("./pages/MyExtraPage1")); @@ -33,7 +32,7 @@ export default function KcApp(props: { kcContext: KcContext; }) { case "password.ftl": return ; case "my-extra-page-1.ftl": return ; case "my-extra-page-2.ftl": return ; - default: return ; + default: return ; } })()} diff --git a/src/keycloak-theme/login/KcApp.tsx b/src/keycloak-theme/login/KcApp.tsx index ee8438f..f734f4c 100644 --- a/src/keycloak-theme/login/KcApp.tsx +++ b/src/keycloak-theme/login/KcApp.tsx @@ -57,7 +57,7 @@ export default function KcApp(props: { kcContext: KcContext; }) { case "my-extra-page-2.ftl": return ; // We choose to use the default Template for the Info page and to download the theme resources. case "info.ftl": return ; - default: return ; + default: return ; } })()}