2019-06-19 14:40:52 +00:00
|
|
|
import { storiesOf } from "@storybook/react";
|
2019-08-09 10:26:22 +00:00
|
|
|
import React from "react";
|
2019-06-19 14:40:52 +00:00
|
|
|
|
|
|
|
import ActionDialog from "@saleor/components/ActionDialog";
|
|
|
|
import Decorator from "../../Decorator";
|
|
|
|
|
|
|
|
storiesOf("Generics / ActionDialog", module)
|
|
|
|
.addDecorator(Decorator)
|
|
|
|
.add("default", () => (
|
|
|
|
<ActionDialog
|
|
|
|
title="Example title"
|
|
|
|
open={true}
|
|
|
|
onClose={undefined}
|
|
|
|
onConfirm={undefined}
|
|
|
|
confirmButtonState="default"
|
|
|
|
>
|
|
|
|
Example content
|
|
|
|
</ActionDialog>
|
|
|
|
));
|