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 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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user