aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.tsx
diff options
context:
space:
mode:
authorGravatar garronej <[email protected]>2023-03-21 17:19:01 +0100
committerGravatar garronej <[email protected]>2023-03-21 17:19:01 +0100
commitcee8ea7ecb4a341d46e6728af8a43a4b0af2ca49 (patch)
treefbe79cecb6ef951bb03ca3adaa25232e776bef81 /src/index.tsx
parentWorking with v7 (without account theme) (diff)
Update setup
Diffstat (limited to 'src/index.tsx')
-rw-r--r--src/index.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/index.tsx b/src/index.tsx
index ba55bfe..fa7baab 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -1,9 +1,11 @@
import { createRoot } from "react-dom/client";
import { StrictMode, lazy, Suspense } from "react";
import { kcContext as kcLoginThemeContext } from "./keycloak-theme/login/kcContext";
+import { kcContext as kcAccountThemeContext } from "./keycloak-theme/account/kcContext";
-const App = lazy(() => import("./App"));
const KcLoginThemeApp = lazy(() => import("./keycloak-theme/login/KcApp"));
+const KcAccountThemeApp = lazy(() => import("./keycloak-theme/account/KcApp"));
+const App = lazy(() => import("./App"));
createRoot(document.getElementById("root")!).render(
<StrictMode>
@@ -14,6 +16,10 @@ createRoot(document.getElementById("root")!).render(
return <KcLoginThemeApp kcContext={kcLoginThemeContext} />;
}
+ if( kcAccountThemeContext !== undefined ){
+ return <KcAccountThemeApp kcContext={kcAccountThemeContext} />;
+ }
+
return <App />;
})()}