feca61d2b0
* renamed `useFetch` to `asyncStateFetch` otherwise React will mistake it for a react hook and will complain. * added jsdoc * fixed the user red stories * renamed
22 lines
612 B
TypeScript
22 lines
612 B
TypeScript
import React from "react";
|
|
import { Meta } from "@storybook/react";
|
|
import { Page } from "@patternfly/react-core";
|
|
import { UserFederationLdapSettings } from "../user-federation/UserFederationLdapSettings";
|
|
import { MockAdminClient } from "./MockAdminClient";
|
|
|
|
export default {
|
|
title: "User Federation LDAP Settings Tab",
|
|
component: UserFederationLdapSettings,
|
|
} as Meta;
|
|
|
|
export const view = () => {
|
|
return (
|
|
<Page>
|
|
<MockAdminClient
|
|
mock={{ components: { findOne: () => Promise.resolve({}) } }}
|
|
>
|
|
<UserFederationLdapSettings />
|
|
</MockAdminClient>
|
|
</Page>
|
|
);
|
|
};
|