2020-07-22 10:54:15 +00:00
|
|
|
import Decorator from "@saleor/storybook/Decorator";
|
|
|
|
import { storiesOf } from "@storybook/react";
|
|
|
|
import React from "react";
|
|
|
|
|
|
|
|
import AppDeleteDialog, { AppDeleteDialogProps } from "./AppDeleteDialog";
|
|
|
|
|
|
|
|
const props: AppDeleteDialogProps = {
|
|
|
|
confirmButtonState: "default",
|
|
|
|
name: "App",
|
|
|
|
onClose: () => undefined,
|
|
|
|
onConfirm: () => undefined,
|
|
|
|
open: true,
|
2022-06-21 09:36:55 +00:00
|
|
|
type: "EXTERNAL",
|
2020-07-22 10:54:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
storiesOf("Views / Apps / Delete app", module)
|
|
|
|
.addDecorator(Decorator)
|
|
|
|
.add("default", () => <AppDeleteDialog {...props} />)
|
|
|
|
.add("unnamed app", () => <AppDeleteDialog {...props} name={null} />);
|