Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jul 26, 2024
1 parent f32b4ec commit 55e0d08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>;
})()}
Expand All @@ -38,6 +38,6 @@ declare global {
interface Window {
kcContext?:
| import("./login/KcContext").KcContext
| import("./account/KcContext").KcContext;
//| import("./account/KcContext").KcContext;
}
}

0 comments on commit 55e0d08

Please sign in to comment.