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 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}
|
|
|
|
/>
|
|
|
|
));
|