keycloak-scim/src/index.tsx

25 lines
670 B
TypeScript
Raw Normal View History

2021-07-16 08:59:46 +00:00
import "./index.css";
2021-07-14 12:20:04 +00:00
import React, { StrictMode } from "react";
import ReactDOM from "react-dom";
import i18n from "./i18n";
import init from "./context/auth/keycloak";
import { KeycloakAdminConsole } from "./KeycloakAdminConsole";
console.info("supported languages", ...i18n.languages);
init().then((adminClient) => {
2021-07-14 12:20:04 +00:00
ReactDOM.render(
<StrictMode>
<KeycloakAdminConsole adminClient={adminClient} />
</StrictMode>,
document.getElementById("app")
);
});
// 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();
}