b14027ccb7
* 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
25 lines
715 B
TypeScript
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>
|
|
);
|
|
};
|