diff --git a/src/clients/advanced/ApplicationUrls.tsx b/src/clients/advanced/ApplicationUrls.tsx new file mode 100644 index 0000000000..3744769403 --- /dev/null +++ b/src/clients/advanced/ApplicationUrls.tsx @@ -0,0 +1,71 @@ +import { useTranslation } from "react-i18next"; +import { useFormContext } from "react-hook-form"; +import { FormGroup } from "@patternfly/react-core"; + +import { HelpItem } from "../../components/help-enabler/HelpItem"; +import { KeycloakTextInput } from "../../components/keycloak-text-input/KeycloakTextInput"; +import { convertAttributeNameToForm } from "../../util"; + +export const ApplicationUrls = () => { + const { t } = useTranslation("clients"); + const { register } = useFormContext(); + + return ( + <> + + } + > + + + + } + > + + + + } + > + + + + ); +}; diff --git a/src/clients/advanced/FineGrainOpenIdConnect.tsx b/src/clients/advanced/FineGrainOpenIdConnect.tsx index 0fe0b80673..f099c4b30b 100644 --- a/src/clients/advanced/FineGrainOpenIdConnect.tsx +++ b/src/clients/advanced/FineGrainOpenIdConnect.tsx @@ -15,7 +15,7 @@ import { HelpItem } from "../../components/help-enabler/HelpItem"; import { useServerInfo } from "../../context/server-info/ServerInfoProvider"; import { convertAttributeNameToForm, sortProviders } from "../../util"; import { MultiLineInput } from "../../components/multi-line-input/MultiLineInput"; -import { KeycloakTextInput } from "../../components/keycloak-text-input/KeycloakTextInput"; +import { ApplicationUrls } from "./ApplicationUrls"; type FineGrainOpenIdConnectProps = { save: () => void; @@ -57,7 +57,7 @@ export const FineGrainOpenIdConnect = ({ setAuthorizationEncryptedResponseOpen, ] = useState(false); - const { control, register } = useFormContext(); + const { control } = useFormContext(); const keyOptions = [ @@ -148,60 +148,7 @@ export const FineGrainOpenIdConnect = ({ fineGrainedAccess={hasConfigureAccess} isHorizontal > - - } - > - - - - } - > - - - - } - > - - + >; @@ -20,6 +21,7 @@ export const FineGrainSamlEndpointConfig = ({ const { t } = useTranslation("clients"); return ( +