adds user federation kerberos wizard
This commit is contained in:
parent
84ad3853a8
commit
cc2dd3e512
2 changed files with 42 additions and 0 deletions
17
src/stories/UserFedWizard.stories.tsx
Normal file
17
src/stories/UserFedWizard.stories.tsx
Normal file
|
@ -0,0 +1,17 @@
|
|||
import React from "react";
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Page } from "@patternfly/react-core";
|
||||
import { UserFederationKerberosWizard } from "../user-federation/UserFederationKerberosWizard";
|
||||
|
||||
export default {
|
||||
title: "User Federation Wizard",
|
||||
component: UserFederationKerberosWizard,
|
||||
} as Meta;
|
||||
|
||||
export const view = () => {
|
||||
return (
|
||||
<Page>
|
||||
<UserFederationKerberosWizard />
|
||||
</Page>
|
||||
);
|
||||
};
|
25
src/user-federation/UserFederationKerberosWizard.tsx
Normal file
25
src/user-federation/UserFederationKerberosWizard.tsx
Normal file
|
@ -0,0 +1,25 @@
|
|||
import { Button, Wizard } from "@patternfly/react-core";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import React from "react";
|
||||
import { KerberosSettingsRequired } from "./KerberosSettingsRequired";
|
||||
import { KerberosSettingsCache } from "./KerberosSettingsCache";
|
||||
|
||||
export const UserFederationKerberosWizard = () => {
|
||||
const { t } = useTranslation("user-federation");
|
||||
|
||||
const steps = [
|
||||
{ name: "Required settings", component: <KerberosSettingsRequired /> },
|
||||
{ name: "Cache settings", component: <KerberosSettingsCache /> },
|
||||
];
|
||||
const title = "Add Kerberos user federation provider";
|
||||
|
||||
return (
|
||||
<Wizard
|
||||
title={title}
|
||||
description="Text needed here"
|
||||
steps={steps}
|
||||
// onClose={handleModalToggle}
|
||||
// isOpen={isOpen}
|
||||
/>
|
||||
);
|
||||
};
|
Loading…
Reference in a new issue