Small refactor
This commit is contained in:
@ -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>
|
||||
);
|
||||
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
Reference in New Issue
Block a user