saleor-dashboard/src/storybook/stories/orders/OrderPaymentDialog.tsx

29 lines
712 B
TypeScript
Raw Normal View History

2019-06-19 14:40:52 +00:00
import { storiesOf } from "@storybook/react";
import * as React from "react";
import OrderPaymentDialog from "../../../orders/components/OrderPaymentDialog";
import Decorator from "../../Decorator";
storiesOf("Orders / OrderPaymentDialog", module)
.addDecorator(Decorator)
.add("capture payment", () => (
<OrderPaymentDialog
confirmButtonState="default"
initial={0}
variant="capture"
open={true}
onClose={undefined}
onSubmit={undefined}
/>
))
.add("refund payment", () => (
<OrderPaymentDialog
confirmButtonState="default"
initial={0}
variant="refund"
open={true}
onClose={undefined}
onSubmit={undefined}
/>
));