2019-06-19 14:40:52 +00:00
|
|
|
import { Omit } from "@material-ui/core";
|
|
|
|
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
|
|
|
|
2019-08-12 11:47:38 +00:00
|
|
|
import placeholderImage from "@assets/images/placeholder60x60.png";
|
2019-06-19 14:40:52 +00:00
|
|
|
import OrderFulfillmentDialog, {
|
|
|
|
OrderFulfillmentDialogProps
|
|
|
|
} from "../../../orders/components/OrderFulfillmentDialog";
|
|
|
|
import { order as orderFixture } from "../../../orders/fixtures";
|
|
|
|
import Decorator from "../../Decorator";
|
|
|
|
|
|
|
|
const order = orderFixture(placeholderImage);
|
|
|
|
|
|
|
|
const props: Omit<OrderFulfillmentDialogProps, "classes"> = {
|
|
|
|
confirmButtonState: "default",
|
|
|
|
lines: order.lines,
|
|
|
|
onClose: undefined,
|
|
|
|
onSubmit: undefined,
|
|
|
|
open: true
|
|
|
|
};
|
|
|
|
|
|
|
|
storiesOf("Orders / OrderFulfillmentDialog", module)
|
|
|
|
.addDecorator(Decorator)
|
|
|
|
.add("default", () => <OrderFulfillmentDialog {...props} />);
|