keycloak-scim/js/apps/admin-ui/src/main.tsx

27 lines
720 B
TypeScript
Raw Normal View History

2022-08-02 12:11:38 +00:00
import "@patternfly/react-core/dist/styles/base.css";
import "@patternfly/patternfly/patternfly-addons.css";
2022-08-02 12:11:38 +00:00
import { StrictMode } from "react";
import { render } from "react-dom";
import { createHashRouter, RouterProvider } from "react-router-dom";
import { initI18n } from "./i18n";
import { keycloak } from "./keycloak";
import { RootRoute } from "./routes";
import "./index.css";
// Initialize required components before rendering app.
await keycloak.init({ onLoad: "check-sso", pkceMethod: "S256" });
await initI18n();
const router = createHashRouter([RootRoute]);
2023-02-13 07:18:16 +00:00
const container = document.getElementById("app");
2023-02-13 07:18:16 +00:00
render(
<StrictMode>
<RouterProvider router={router} />
2023-02-13 07:18:16 +00:00
</StrictMode>,
container
);