2021-01-04 21:33:18 +00:00
import { Wizard } from "@patternfly/react-core" ;
2020-11-18 16:18:32 +00:00
import { useTranslation } from "react-i18next" ;
import React from "react" ;
2021-01-04 21:33:18 +00:00
import { KerberosSettingsRequired } from "./kerberos/KerberosSettingsRequired" ;
import { KerberosSettingsCache } from "./kerberos/KerberosSettingsCache" ;
2020-11-18 16:18:32 +00:00
export const UserFederationKerberosWizard = ( ) = > {
const { t } = useTranslation ( "user-federation" ) ;
const steps = [
2020-12-15 22:50:09 +00:00
{
2021-01-04 21:33:18 +00:00
name : t ( "requiredSettings" ) ,
component : (
< KerberosSettingsRequired showSectionHeading showSectionDescription / >
) ,
} ,
{
name : t ( "cacheSettings" ) ,
component : (
< KerberosSettingsCache showSectionHeading showSectionDescription / >
) ,
nextButtonText : t ( "common:finish" ) , // TODO: needs to disable until cache policy is valid
2020-12-15 22:50:09 +00:00
} ,
2020-11-18 16:18:32 +00:00
] ;
return (
< Wizard
2021-01-05 16:08:43 +00:00
// Because this is an inline wizard, this title and description should be put into the page. Specifying them here causes the wizard component to make a header that would be used on a modal.
// title={t("addKerberosWizardTitle")}
// description={helpText("addKerberosWizardDescription")}
2020-11-18 16:18:32 +00:00
steps = { steps }
/ >
) ;
} ;