Upgrade to React Router v6 (#4198)
This commit is contained in:
parent
45b2a8da62
commit
f32d3f5cfb
176 changed files with 351 additions and 650 deletions
6
.github/dependabot.yml
vendored
6
.github/dependabot.yml
vendored
|
@ -12,12 +12,6 @@ updates:
|
|||
ignore:
|
||||
- dependency-name: react-hook-form
|
||||
update-types: ["version-update:semver-major"]
|
||||
- dependency-name: react-router
|
||||
update-types: ["version-update:semver-major"]
|
||||
- dependency-name: react-router-dom
|
||||
update-types: ["version-update:semver-major"]
|
||||
- dependency-name: use-react-router-breadcrumbs
|
||||
update-types: ["version-update:semver-major"]
|
||||
- dependency-name: react-flow-renderer
|
||||
update-types: ["version-update:semver-major"]
|
||||
- dependency-name: react
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
"react-dom": "^17.0.2",
|
||||
"react-hook-form": "^7.38.0",
|
||||
"react-i18next": "^12.0.0",
|
||||
"react-router": "^6.4.3",
|
||||
"react-router-dom": "^6.4.3"
|
||||
"react-router-dom": "^6.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^17.0.45",
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
TextVariants,
|
||||
} from "@patternfly/react-core";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useRouteError } from "react-router";
|
||||
import { useRouteError } from "react-router-dom";
|
||||
|
||||
export const ErrorPage = () => {
|
||||
const { t } = useTranslation();
|
||||
|
|
|
@ -6,7 +6,7 @@ import {
|
|||
} from "keycloak-masthead";
|
||||
import { Suspense, useMemo } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Outlet } from "react-router";
|
||||
import { Outlet } from "react-router-dom";
|
||||
import { AlertProvider } from "../components/alerts/Alerts";
|
||||
|
||||
import { environment } from "../environment";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { lazy } from "react";
|
||||
import type { IndexRouteObject, RouteObject } from "react-router";
|
||||
import type { IndexRouteObject, RouteObject } from "react-router-dom";
|
||||
|
||||
import { ErrorPage } from "./root/ErrorPage";
|
||||
import { Root } from "./root/Root";
|
||||
|
|
|
@ -76,11 +76,9 @@
|
|||
"react-hook-form": "^6.15.8",
|
||||
"react-hook-form-v7": "npm:react-hook-form@^7.35.1",
|
||||
"react-i18next": "^12.0.0",
|
||||
"react-router": "^5.3.4",
|
||||
"react-router-dom": "^5.3.4",
|
||||
"react-router-dom-v5-compat": "^6.6.1",
|
||||
"react-router-dom": "^6.6.2",
|
||||
"react-use-localstorage": "^3.5.3",
|
||||
"use-react-router-breadcrumbs": "^2.0.2"
|
||||
"use-react-router-breadcrumbs": "^4.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@4tw/cypress-drag-drop": "^2.2.3",
|
||||
|
@ -98,7 +96,6 @@
|
|||
"@types/lodash-es": "^4.17.6",
|
||||
"@types/react": "^17.0.45",
|
||||
"@types/react-dom": "^17.0.16",
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"@vitejs/plugin-react": "^2.2.0",
|
||||
"cypress": "^11.2.0",
|
||||
"del": "^7.0.0",
|
||||
|
|
|
@ -1,29 +1,26 @@
|
|||
import { FunctionComponent, Suspense } from "react";
|
||||
import { Page } from "@patternfly/react-core";
|
||||
import { HashRouter as Router, Switch } from "react-router-dom";
|
||||
import { CompatRouter, CompatRoute } from "react-router-dom-v5-compat";
|
||||
import { ErrorBoundary } from "react-error-boundary";
|
||||
import type Keycloak from "keycloak-js";
|
||||
import type KeycloakAdminClient from "@keycloak/keycloak-admin-client";
|
||||
import { Page } from "@patternfly/react-core";
|
||||
import type Keycloak from "keycloak-js";
|
||||
import { FunctionComponent, Suspense } from "react";
|
||||
import { ErrorBoundary } from "react-error-boundary";
|
||||
import { HashRouter as Router, Route, Routes } from "react-router-dom";
|
||||
|
||||
import { Header } from "./PageHeader";
|
||||
import { PageNav } from "./PageNav";
|
||||
import { Help } from "./components/help-enabler/HelpHeader";
|
||||
|
||||
import { ServerInfoProvider } from "./context/server-info/ServerInfoProvider";
|
||||
import { AlertProvider } from "./components/alert/Alerts";
|
||||
|
||||
import { AccessContextProvider, useAccess } from "./context/access/Access";
|
||||
import { routes, RouteDef } from "./route-config";
|
||||
import { PageBreadCrumbs } from "./components/bread-crumb/PageBreadCrumbs";
|
||||
import { ErrorRenderer } from "./components/error/ErrorRenderer";
|
||||
import { Help } from "./components/help-enabler/HelpHeader";
|
||||
import { KeycloakSpinner } from "./components/keycloak-spinner/KeycloakSpinner";
|
||||
import { AccessContextProvider, useAccess } from "./context/access/Access";
|
||||
import { AdminClientContext } from "./context/auth/AdminClient";
|
||||
import { RealmContextProvider } from "./context/realm-context/RealmContext";
|
||||
import { RealmsProvider } from "./context/RealmsContext";
|
||||
import { ServerInfoProvider } from "./context/server-info/ServerInfoProvider";
|
||||
import { WhoAmIContextProvider } from "./context/whoami/WhoAmI";
|
||||
import { ForbiddenSection } from "./ForbiddenSection";
|
||||
import { SubGroups } from "./groups/SubGroupsContext";
|
||||
import { RealmsProvider } from "./context/RealmsContext";
|
||||
import { RealmContextProvider } from "./context/realm-context/RealmContext";
|
||||
import { ErrorRenderer } from "./components/error/ErrorRenderer";
|
||||
import { AdminClientContext } from "./context/auth/AdminClient";
|
||||
import { WhoAmIContextProvider } from "./context/whoami/WhoAmI";
|
||||
import { Header } from "./PageHeader";
|
||||
import { PageNav } from "./PageNav";
|
||||
import { RouteDef, routes } from "./route-config";
|
||||
|
||||
export const mainPageContentId = "kc-main-content-page-container";
|
||||
|
||||
|
@ -38,7 +35,6 @@ const AppContexts: FunctionComponent<AdminClientProps> = ({
|
|||
adminClient,
|
||||
}) => (
|
||||
<Router>
|
||||
<CompatRouter>
|
||||
<AdminClientContext.Provider value={{ keycloak, adminClient }}>
|
||||
<WhoAmIContextProvider>
|
||||
<RealmsProvider>
|
||||
|
@ -54,7 +50,6 @@ const AppContexts: FunctionComponent<AdminClientProps> = ({
|
|||
</RealmsProvider>
|
||||
</WhoAmIContextProvider>
|
||||
</AdminClientContext.Provider>
|
||||
</CompatRouter>
|
||||
</Router>
|
||||
);
|
||||
|
||||
|
@ -96,17 +91,15 @@ export const App = ({ keycloak, adminClient }: AdminClientProps) => {
|
|||
}
|
||||
>
|
||||
<ServerInfoProvider>
|
||||
<Switch>
|
||||
<Routes>
|
||||
{routes.map((route, i) => (
|
||||
<CompatRoute
|
||||
<Route
|
||||
key={i}
|
||||
path={route.path}
|
||||
exact={route.matchOptions?.exact ?? true}
|
||||
>
|
||||
<SecuredRoute route={route} />
|
||||
</CompatRoute>
|
||||
element={<SecuredRoute route={route} />}
|
||||
/>
|
||||
))}
|
||||
</Switch>
|
||||
</Routes>
|
||||
</ServerInfoProvider>
|
||||
</ErrorBoundary>
|
||||
</Page>
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
import { HelpIcon } from "@patternfly/react-icons";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link } from "react-router-dom-v5-compat";
|
||||
import { Link } from "react-router-dom";
|
||||
import { HelpHeader, useHelp } from "./components/help-enabler/HelpHeader";
|
||||
import { useAdminClient } from "./context/auth/AdminClient";
|
||||
import { useRealm } from "./context/realm-context/RealmContext";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { FormEvent, FunctionComponent } from "react";
|
||||
import { NavLink, useMatch, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { NavLink, useMatch, useNavigate } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import {
|
||||
Nav,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from "react";
|
||||
import { Link } from "react-router-dom-v5-compat";
|
||||
import { Link } from "react-router-dom";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
import { sortBy } from "lodash-es";
|
||||
import {
|
||||
|
|
|
@ -10,7 +10,7 @@ import {
|
|||
import { useEffect } from "react";
|
||||
import { FormProvider, useForm } from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useNavigate } from "react-router-dom-v5-compat";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../components/alert/Alerts";
|
||||
import { useAdminClient } from "../context/auth/AdminClient";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from "react";
|
||||
import { useParams, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { useParams, useNavigate } from "react-router-dom";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
import {
|
||||
DataList,
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
} from "@patternfly/react-core";
|
||||
import { FormProvider, useForm } from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
import { FormAccess } from "../../components/form-access/FormAccess";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type AuthenticationTab = "flows" | "required-actions" | "policies";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type CreateFlowParams = { realm: string };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type FlowParams = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link } from "react-router-dom-v5-compat";
|
||||
import { Link } from "react-router-dom";
|
||||
import {
|
||||
AlertVariant,
|
||||
Button,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { AlertVariant, PageSection } from "@patternfly/react-core";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useNavigate } from "react-router-dom-v5-compat";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../components/alert/Alerts";
|
||||
import {
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
} from "@patternfly/react-core";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useNavigate } from "react-router-dom-v5-compat";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useAlerts } from "../components/alert/Alerts";
|
||||
|
||||
import {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { useEffect, useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { Link } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { Link } from "react-router-dom";
|
||||
import { Dropdown, DropdownItem, DropdownToggle } from "@patternfly/react-core";
|
||||
import { CaretDownIcon } from "@patternfly/react-icons";
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ import {
|
|||
import { useState } from "react";
|
||||
import { FormProvider, useForm } from "react-hook-form";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useMatch, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useMatch, useNavigate } from "react-router-dom";
|
||||
|
||||
import { toClient } from "../../clients/routes/Client";
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
import { useEffect, useState } from "react";
|
||||
import { Controller, useForm, useWatch } from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link } from "react-router-dom-v5-compat";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
import { getProtocolName } from "../../clients/utils";
|
||||
import {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type ClientScopeTab = "settings" | "mappers" | "scope";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type ClientScopesParams = { realm: string };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type MapperParams = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type NewClientScopeParams = { realm: string };
|
||||
|
|
|
@ -20,7 +20,7 @@ import {
|
|||
useWatch,
|
||||
} from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useNavigate } from "react-router-dom-v5-compat";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../components/alert/Alerts";
|
||||
import {
|
||||
|
|
|
@ -13,7 +13,7 @@ import type ClientRepresentation from "@keycloak/keycloak-admin-client/lib/defs/
|
|||
import type { ClientQuery } from "@keycloak/keycloak-admin-client/lib/resources/clients";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link } from "react-router-dom-v5-compat";
|
||||
import { Link } from "react-router-dom";
|
||||
import { useAlerts } from "../components/alert/Alerts";
|
||||
import { useConfirmDialog } from "../components/confirm-dialog/ConfirmDialog";
|
||||
import { formattedLinkTableCell } from "../components/external-link/FormattedLink";
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
import { useState } from "react";
|
||||
import { FormProvider, useForm } from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useNavigate } from "react-router-dom-v5-compat";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
import { FormAccess } from "../../components/form-access/FormAccess";
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
import { useEffect, useRef } from "react";
|
||||
import { useFormContext } from "react-hook-form-v7";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
import { Link } from "react-router-dom-v5-compat";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
import { FormAccess } from "../../components/form-access/FormAccess";
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
import { ExpandableRowContent, Tbody, Td, Tr } from "@patternfly/react-table";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link } from "react-router-dom-v5-compat";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
import { useRealm } from "../../context/realm-context/RealmContext";
|
||||
import { useParams } from "../../utils/useParams";
|
||||
|
|
|
@ -4,7 +4,7 @@ import {
|
|||
DescriptionListTerm,
|
||||
} from "@patternfly/react-core";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, Path } from "react-router-dom-v5-compat";
|
||||
import { Link, Path } from "react-router-dom";
|
||||
|
||||
type DetailDescriptionProps<T> = {
|
||||
name: string;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { useNavigate } from "react-router-dom-v5-compat";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import {
|
||||
EmptyState,
|
||||
|
|
|
@ -20,7 +20,7 @@ import {
|
|||
useWatch,
|
||||
} from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
import { useConfirmDialog } from "../../components/confirm-dialog/ConfirmDialog";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from "react";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import {
|
||||
Alert,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from "react";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import {
|
||||
Alert,
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
import { useState } from "react";
|
||||
import { Controller, FormProvider, useForm } from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
import { useConfirmDialog } from "../../components/confirm-dialog/ConfirmDialog";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from "react";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import {
|
||||
Alert,
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
import { useState } from "react";
|
||||
import { useForm } from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
import { FormAccess } from "../../components/form-access/FormAccess";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from "react";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import {
|
||||
Button,
|
||||
|
|
|
@ -10,7 +10,7 @@ import {
|
|||
import { FunctionComponent, useState } from "react";
|
||||
import { FormProvider, useForm } from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../../../components/alert/Alerts";
|
||||
import { useConfirmDialog } from "../../../components/confirm-dialog/ConfirmDialog";
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
import { useState } from "react";
|
||||
import { FormProvider, useForm } from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
|
||||
import type ClientRepresentation from "@keycloak/keycloak-admin-client/lib/defs/clientRepresentation";
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import { FormAccess } from "../../components/form-access/FormAccess";
|
|||
import { ViewHeader } from "../../components/view-header/ViewHeader";
|
||||
import { HelpItem } from "../../components/help-enabler/HelpItem";
|
||||
import { TimeSelector } from "../../components/time-selector/TimeSelector";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
import { useRealm } from "../../context/realm-context/RealmContext";
|
||||
import { useAdminClient } from "../../context/auth/AdminClient";
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
|
|
|
@ -3,7 +3,7 @@ import { wrappable } from "@patternfly/react-table";
|
|||
import type ClientInitialAccessPresentation from "@keycloak/keycloak-admin-client/lib/defs/clientInitialAccessPresentation";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
import { useConfirmDialog } from "../../components/confirm-dialog/ConfirmDialog";
|
||||
import { ListEmptyState } from "../../components/list-empty-state/ListEmptyState";
|
||||
|
|
|
@ -2,7 +2,7 @@ import type RoleRepresentation from "@keycloak/keycloak-admin-client/lib/defs/ro
|
|||
import { AlertVariant } from "@patternfly/react-core";
|
||||
import { SubmitHandler, useForm } from "react-hook-form";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useNavigate, useParams } from "react-router-dom-v5-compat";
|
||||
import { useNavigate, useParams } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
import { AttributeForm } from "../../components/key-value-form/AttributeForm";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type AddClientParams = { realm: string };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type AuthorizationTab =
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type ClientTab =
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type ClientRoleTab =
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type ClientScopesTab = "setup" | "evaluate";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type ClientsTab = "list" | "initial-access-token";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type CreateInitialAccessTokenParams = { realm: string };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type DedicatedScopeTab = "mappers" | "scope";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type ImportClientParams = { realm: string };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type MapperParams = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type PermissionType = "resource" | "scope";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type NewPolicyParams = { realm: string; id: string; policyType: string };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type NewResourceParams = { realm: string; id: string };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type NewRoleParams = { realm: string; clientId: string };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type NewScopeParams = { realm: string; id: string };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
import type { PermissionType } from "./NewPermission";
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type PolicyDetailsParams = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type ResourceDetailsParams = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type ScopeDetailsParams = {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from "react";
|
||||
import { Link } from "react-router-dom-v5-compat";
|
||||
import { Link } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import {
|
||||
AlertVariant,
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
} from "@patternfly/react-core";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useNavigate } from "react-router-dom-v5-compat";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
import { MapperList } from "../../client-scopes/details/MapperList";
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from "react";
|
||||
import { Link } from "react-router-dom-v5-compat";
|
||||
import { Link } from "react-router-dom";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
import { AlertVariant, PageSection } from "@patternfly/react-core";
|
||||
import { InfoCircleIcon } from "@patternfly/react-icons";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useEffect } from "react";
|
||||
import { Link, useLocation } from "react-router-dom-v5-compat";
|
||||
import { Link, useLocation } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Breadcrumb, BreadcrumbItem } from "@patternfly/react-core";
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { Breadcrumb, BreadcrumbItem } from "@patternfly/react-core";
|
||||
import { uniqBy } from "lodash-es";
|
||||
import { isValidElement } from "react";
|
||||
import { Link } from "react-router-dom-v5-compat";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link } from "react-router-dom";
|
||||
import useBreadcrumbs, {
|
||||
BreadcrumbData,
|
||||
BreadcrumbsRoute,
|
||||
} from "use-react-router-breadcrumbs";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { uniqBy } from "lodash-es";
|
||||
import { Breadcrumb, BreadcrumbItem } from "@patternfly/react-core";
|
||||
|
||||
import { useRealm } from "../../context/realm-context/RealmContext";
|
||||
import { routes } from "../../route-config";
|
||||
|
@ -34,7 +34,7 @@ export const PageBreadCrumbs = () => {
|
|||
{crumbs.map(({ match, breadcrumb: crumb }, i) => (
|
||||
<BreadcrumbItem key={i} isActive={crumbs.length - 1 === i}>
|
||||
{crumbs.length - 1 !== i ? (
|
||||
<Link to={match.url}>{crumb}</Link>
|
||||
<Link to={match.pathname}>{crumb}</Link>
|
||||
) : (
|
||||
crumb
|
||||
)}
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
Label,
|
||||
} from "@patternfly/react-core";
|
||||
import { ReactElement, useState } from "react";
|
||||
import { To, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { To, useNavigate } from "react-router-dom";
|
||||
import { ClickableCard } from "./ClickableCard";
|
||||
|
||||
import "./keycloak-card.css";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from "react";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
import {
|
||||
Card,
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
import { CheckIcon } from "@patternfly/react-icons";
|
||||
import { Fragment, ReactElement, useMemo, useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useNavigate } from "react-router-dom-v5-compat";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
import { useRealm } from "../../context/realm-context/RealmContext";
|
||||
import { useRealms } from "../../context/RealmsContext";
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
} from "@patternfly/react-core";
|
||||
import { SubmitHandler, useWatch, UseFormMethods } from "react-hook-form";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, To } from "react-router-dom-v5-compat";
|
||||
import { Link, To } from "react-router-dom";
|
||||
|
||||
import { FormAccess } from "../form-access/FormAccess";
|
||||
import { AttributeForm } from "../key-value-form/AttributeForm";
|
||||
|
|
|
@ -3,7 +3,7 @@ import type RoleRepresentation from "@keycloak/keycloak-admin-client/lib/defs/ro
|
|||
import { AlertVariant, Button, ButtonVariant } from "@patternfly/react-core";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, To, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, To, useNavigate } from "react-router-dom";
|
||||
|
||||
import { useAdminClient, useFetch } from "../../context/auth/AdminClient";
|
||||
import { useRealm } from "../../context/realm-context/RealmContext";
|
||||
|
|
|
@ -10,7 +10,7 @@ import {
|
|||
JSXElementConstructor,
|
||||
ReactElement,
|
||||
} from "react";
|
||||
import { Path, useHref, useLocation } from "react-router-dom-v5-compat";
|
||||
import { Path, useHref, useLocation } from "react-router-dom";
|
||||
|
||||
// TODO: Remove the custom 'children' props and type once the following issue has been resolved:
|
||||
// https://github.com/patternfly/patternfly-react/issues/6766
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { FunctionComponent, useEffect, useMemo } from "react";
|
||||
import { useMatch } from "react-router-dom-v5-compat";
|
||||
import { useMatch } from "react-router-dom";
|
||||
|
||||
import { RecentUsed } from "../../components/realm-selector/recent-used";
|
||||
import { DashboardRouteWithRealm } from "../../dashboard/routes/Dashboard";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type DashboardTab = "info" | "providers";
|
||||
|
|
|
@ -31,7 +31,7 @@ import { pickBy } from "lodash-es";
|
|||
import { useState } from "react";
|
||||
import { Controller, useForm } from "react-hook-form-v7";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
import { Link } from "react-router-dom-v5-compat";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
import { KeycloakTextInput } from "../components/keycloak-text-input/KeycloakTextInput";
|
||||
import { ListEmptyState } from "../components/list-empty-state/ListEmptyState";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { ReactElement } from "react";
|
||||
import { Link } from "react-router-dom-v5-compat";
|
||||
import { Link } from "react-router-dom";
|
||||
import { Tooltip } from "@patternfly/react-core";
|
||||
|
||||
import type AdminEventRepresentation from "@keycloak/keycloak-admin-client/lib/defs/adminEventRepresentation";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type EventsTab = "user-events" | "admin-events";
|
||||
|
|
|
@ -20,7 +20,7 @@ import { useAdminClient } from "../context/auth/AdminClient";
|
|||
|
||||
import { getLastId } from "./groupIdUtils";
|
||||
import { useSubGroups } from "./SubGroupsContext";
|
||||
import { useLocation } from "react-router-dom-v5-compat";
|
||||
import { useLocation } from "react-router-dom";
|
||||
|
||||
export const GroupAttributes = () => {
|
||||
const { t } = useTranslation("groups");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from "react";
|
||||
import { Link, useLocation, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useLocation, useNavigate } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { SearchInput, ToolbarItem } from "@patternfly/react-core";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from "react";
|
||||
import { useLocation, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { useLocation, useNavigate } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import {
|
||||
DropdownItem,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from "react";
|
||||
import { Link, useLocation } from "react-router-dom-v5-compat";
|
||||
import { Link, useLocation } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { uniqBy } from "lodash-es";
|
||||
import {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from "react";
|
||||
import { Link } from "react-router-dom-v5-compat";
|
||||
import { Link } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import {
|
||||
Checkbox,
|
||||
|
|
|
@ -1,17 +1,14 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type GroupsParams = { realm: string; id?: string };
|
||||
|
||||
export const GroupsRoute: RouteDef = {
|
||||
path: "/:realm/groups",
|
||||
path: "/:realm/groups*",
|
||||
component: lazy(() => import("../GroupsSection")),
|
||||
access: "query-groups",
|
||||
matchOptions: {
|
||||
exact: false,
|
||||
},
|
||||
};
|
||||
|
||||
export const GroupsWithIdRoute: RouteDef = {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Fragment, useState } from "react";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { sortBy, groupBy } from "lodash-es";
|
||||
import {
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
} from "@patternfly/react-core";
|
||||
import { FormProvider, useForm } from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
import { FormAccess } from "../../components/form-access/FormAccess";
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
import { useState } from "react";
|
||||
import { FormProvider, useForm } from "react-hook-form";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
import { useConfirmDialog } from "../../components/confirm-dialog/ConfirmDialog";
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
} from "@patternfly/react-core";
|
||||
import { FormProvider, useForm } from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useLocation, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useLocation, useNavigate } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
import { FormAccess } from "../../components/form-access/FormAccess";
|
||||
|
|
|
@ -6,7 +6,7 @@ import {
|
|||
} from "@patternfly/react-core";
|
||||
import { FormProvider, useForm } from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
|
||||
import type IdentityProviderRepresentation from "@keycloak/keycloak-admin-client/lib/defs/identityProviderRepresentation";
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
import { useState } from "react";
|
||||
import { Controller, FormProvider, useForm } from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useNavigate } from "react-router-dom-v5-compat";
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
|
||||
import { useAlerts } from "../../components/alert/Alerts";
|
||||
import { useConfirmDialog } from "../../components/confirm-dialog/ConfirmDialog";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { FormGroup, ValidatedOptions } from "@patternfly/react-core";
|
||||
import { useFormContext } from "react-hook-form-v7";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useParams } from "react-router-dom-v5-compat";
|
||||
import { useParams } from "react-router-dom";
|
||||
|
||||
import { HelpItem } from "../../components/help-enabler/HelpItem";
|
||||
import { KeycloakTextInput } from "../../components/keycloak-text-input/KeycloakTextInput";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type IdentityProviderAddMapperParams = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type IdentityProviderEditMapperParams = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type IdentityProviderTab = "settings" | "mappers" | "permissions";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type IdentityProviderCreateParams = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type IdentityProviderKeycloakOidcParams = { realm: string };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type IdentityProviderOidcParams = { realm: string };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { lazy } from "react";
|
||||
import type { Path } from "react-router-dom-v5-compat";
|
||||
import { generatePath } from "react-router-dom-v5-compat";
|
||||
import type { Path } from "react-router-dom";
|
||||
import { generatePath } from "react-router-dom";
|
||||
import type { RouteDef } from "../../route-config";
|
||||
|
||||
export type IdentityProviderSamlParams = { realm: string };
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue