keycloak-scim/src/stories/UserFedLDAPSettingsTab.stories.tsx
Erik Jan de Wit feca61d2b0
renamed useFetch to asyncStateFetch (#277)
* renamed `useFetch` to `asyncStateFetch`

otherwise React will mistake it for a react hook and will complain.

* added jsdoc

* fixed the user red stories

* renamed
2021-01-11 13:56:19 -05:00

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>
);
};