Fix build
This commit is contained in:
parent
f32b4ecae0
commit
55e0d08796
|
@ -16,7 +16,7 @@ if (import.meta.env.DEV) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const KcLoginThemePage = lazy(() => import("./login/KcPage"));
|
const KcLoginThemePage = lazy(() => import("./login/KcPage"));
|
||||||
const KcAccountThemePage = lazy(() => import("./account/KcPage"));
|
//const KcAccountThemePage = lazy(() => import("./account/KcPage"));
|
||||||
|
|
||||||
createRoot(document.getElementById("root")!).render(
|
createRoot(document.getElementById("root")!).render(
|
||||||
<StrictMode>
|
<StrictMode>
|
||||||
|
@ -25,8 +25,8 @@ createRoot(document.getElementById("root")!).render(
|
||||||
switch (window.kcContext?.themeType) {
|
switch (window.kcContext?.themeType) {
|
||||||
case "login":
|
case "login":
|
||||||
return <KcLoginThemePage kcContext={window.kcContext} />;
|
return <KcLoginThemePage kcContext={window.kcContext} />;
|
||||||
case "account":
|
//case "account":
|
||||||
return <KcAccountThemePage kcContext={window.kcContext} />;
|
// return <KcAccountThemePage kcContext={window.kcContext} />;
|
||||||
}
|
}
|
||||||
return <h1>No Keycloak Context</h1>;
|
return <h1>No Keycloak Context</h1>;
|
||||||
})()}
|
})()}
|
||||||
|
@ -38,6 +38,6 @@ declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
kcContext?:
|
kcContext?:
|
||||||
| import("./login/KcContext").KcContext
|
| import("./login/KcContext").KcContext
|
||||||
| import("./account/KcContext").KcContext;
|
//| import("./account/KcContext").KcContext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue