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

28 lines
731 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";
// eslint-disable-next-line react/no-deprecated
import { render } from "react-dom";
import { createHashRouter, RouterProvider } from "react-router-dom";
import { i18n } from "./i18n/i18n";
import { initKeycloak } from "./keycloak";
import { RootRoute } from "./routes";
import "./index.css";
// Initialize required components before rendering app.
await initKeycloak();
await i18n.init();
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,
2023-02-13 07:18:16 +00:00
);