keycloak-scim/src/KeycloakAdminConsole.tsx
Erik Jan de Wit b14027ccb7
Use realm name in urls (#265)
* remove circular dependency on realm context

* added realm as a param of the url

* updated links to include realm

* null !== undefined

* set realm if realm in url

* fixed breadcrumb type

* fixed tests

* addressed pr review comments
2021-01-05 14:49:33 -05:00

25 lines
715 B
TypeScript

import React from "react";
import KeycloakAdminClient from "keycloak-admin";
import { AdminClient } from "./context/auth/AdminClient";
import { WhoAmIContextProvider } from "./context/whoami/WhoAmI";
import { RealmContextProvider } from "./context/realm-context/RealmContext";
import { App } from "./App";
export type KeycloakAdminConsoleProps = {
adminClient: KeycloakAdminClient;
};
export const KeycloakAdminConsole = ({
adminClient,
}: KeycloakAdminConsoleProps) => {
return (
<RealmContextProvider>
<AdminClient.Provider value={adminClient}>
<WhoAmIContextProvider>
<App />
</WhoAmIContextProvider>
</AdminClient.Provider>
</RealmContextProvider>
);
};