diff options
| author | 2023-02-27 10:13:07 +0100 | |
|---|---|---|
| committer | 2023-02-27 10:13:07 +0100 | |
| commit | 34868a41534398df204df77f5fa70174c4727a6e (patch) | |
| tree | 0e5c3432d6d2485405824103a6fcba9eb7ac5c92 /src/index.tsx | |
| parent | Update KcApp.tsx (diff) | |
Small refactor
Diffstat (limited to 'src/index.tsx')
| -rw-r--r-- | src/index.tsx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/index.tsx b/src/index.tsx index d671dba..37d6a5e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,12 +1,17 @@ import { createRoot } from "react-dom/client"; import { StrictMode, lazy, Suspense } from "react"; -import { kcContext } from "./keycloakTheme/kcContext"; +import { kcContext } from "./keycloak-theme/kcContext"; const App = lazy(() => import("./App")); -const KcApp = lazy(() => import("./keycloakTheme/KcApp")); +const KcApp = lazy(() => import("./keycloak-theme/KcApp")); createRoot(document.getElementById("root")!).render( <StrictMode> - <Suspense>{kcContext === undefined ? <App /> : <KcApp kcContext={kcContext} />}</Suspense> - </StrictMode>, + <Suspense> + {kcContext === undefined ? + <App /> : + <KcApp kcContext={kcContext} /> + } + </Suspense> + </StrictMode> ); |