Fix build

This commit is contained in:
Joseph Garrone 2024-07-26 12:44:31 +02:00
parent f32b4ecae0
commit 55e0d08796

View File

@ -16,7 +16,7 @@ if (import.meta.env.DEV) {
*/
const KcLoginThemePage = lazy(() => import("./login/KcPage"));
const KcAccountThemePage = lazy(() => import("./account/KcPage"));
//const KcAccountThemePage = lazy(() => import("./account/KcPage"));
createRoot(document.getElementById("root")!).render(
<StrictMode>
@ -25,8 +25,8 @@ createRoot(document.getElementById("root")!).render(
switch (window.kcContext?.themeType) {
case "login":
return <KcLoginThemePage kcContext={window.kcContext} />;
case "account":
return <KcAccountThemePage kcContext={window.kcContext} />;
//case "account":
// return <KcAccountThemePage kcContext={window.kcContext} />;
}
return <h1>No Keycloak Context</h1>;
})()}
@ -38,6 +38,6 @@ declare global {
interface Window {
kcContext?:
| import("./login/KcContext").KcContext
| import("./account/KcContext").KcContext;
//| import("./account/KcContext").KcContext;
}
}