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

25 lines
587 B
TypeScript
Raw Normal View History

2022-08-02 12:11:38 +00:00
import "@patternfly/patternfly/patternfly-addons.css";
import "@patternfly/react-core/dist/styles/base.css";
import { StrictMode } from "react";
import { render } from "react-dom";
2021-08-11 11:23:59 +00:00
import { App } from "./App";
import { initAdminClient } from "./context/auth/AdminClient";
import { initI18n } from "./i18n";
import "./index.css";
2023-02-13 07:18:16 +00:00
const { keycloak, adminClient } = await initAdminClient();
2023-02-13 07:18:16 +00:00
await initI18n(adminClient);
2023-02-13 07:18:16 +00:00
const container = document.getElementById("app");
2023-02-13 07:18:16 +00:00
render(
<StrictMode>
<App keycloak={keycloak} adminClient={adminClient} />
</StrictMode>,
container
);