bfa0c6e1ea
* initial version of the advanced tab * added registered nodes * added fine grain open id connect configuration * added open id connect compatibility section * added advanced section * added backend * fixed type * renamed 'advanced' to advancedtab to prevent strange add of '/index.js' by snowpack * fixed storybook stories * change '_' to '-' because '_' is also used * fix spacing buttons * stop passing the form * cypress test for advanced tab * more tests * saml section * changed to use NumberInput * added authetnication flow override * fixed merge error * updated text and added link to settings tab * fixed test * added filter on flows and better reset * added now mandetory error handler * added sorting * Revert "changed to use NumberInput" This reverts commit 7829f2656ae8fc8ed4a4a6b1c4b1961241a09d8e. * allow users to put empty string as value * already on detail page after save * fixed merge error
32 lines
793 B
TypeScript
32 lines
793 B
TypeScript
import React, { useState } from "react";
|
|
import { Meta } from "@storybook/react";
|
|
|
|
import { DownloadDialog } from "../components/download-dialog/DownloadDialog";
|
|
import { MockAdminClient } from "./MockAdminClient";
|
|
|
|
export default {
|
|
title: "Download Dialog",
|
|
component: DownloadDialog,
|
|
} as Meta;
|
|
|
|
const Test = () => {
|
|
const [open, setOpen] = useState(false);
|
|
const toggle = () => setOpen(!open);
|
|
|
|
return (
|
|
<MockAdminClient
|
|
mock={{ clients: { getInstallationProviders: () => '{some: "json"}' } }}
|
|
>
|
|
<button id="show" onClick={toggle}>
|
|
Show
|
|
</button>
|
|
<DownloadDialog
|
|
id="58577281-7af7-410c-a085-61ff3040be6d"
|
|
open={open}
|
|
toggleDialog={toggle}
|
|
/>
|
|
</MockAdminClient>
|
|
);
|
|
};
|
|
|
|
export const Show = () => <Test />;
|