keycloak-scim/src/index.tsx

30 lines
681 B
TypeScript
Raw Normal View History

2021-07-14 12:20:04 +00:00
import React, { StrictMode } from "react";
import ReactDOM 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";
// Hot Module Replacement (HMR) - Remove this snippet to remove HMR.
// Learn more: https://snowpack.dev/concepts/hot-module-replacement
if (import.meta.hot) {
import.meta.hot.accept();
}
async function initialize() {
const adminClient = await initAdminClient();
await initI18n(adminClient);
2021-07-14 12:20:04 +00:00
ReactDOM.render(
<StrictMode>
2021-08-11 11:23:59 +00:00
<App adminClient={adminClient} />
2021-07-14 12:20:04 +00:00
</StrictMode>,
document.getElementById("app")
);
}
initialize();