23 lines
659 B
TypeScript
23 lines
659 B
TypeScript
![]() |
import Decorator from "@saleor/storybook/Decorator";
|
||
|
import { storiesOf } from "@storybook/react";
|
||
|
import React from "react";
|
||
|
|
||
|
import AppInProgressDeleteDialog, {
|
||
|
AppInProgressDeleteDialogProps
|
||
|
} from "./AppInProgressDeleteDialog";
|
||
|
|
||
|
const props: AppInProgressDeleteDialogProps = {
|
||
|
confirmButtonState: "default",
|
||
|
name: "App",
|
||
|
onClose: () => undefined,
|
||
|
onConfirm: () => undefined,
|
||
|
open: true
|
||
|
};
|
||
|
|
||
|
storiesOf("Views / Apps / Delete app failed installation", module)
|
||
|
.addDecorator(Decorator)
|
||
|
.add("default", () => <AppInProgressDeleteDialog {...props} />)
|
||
|
.add("unnamed app", () => (
|
||
|
<AppInProgressDeleteDialog {...props} name={null} />
|
||
|
));
|