import Decorator from "@saleor/storybook/Decorator"; import { storiesOf } from "@storybook/react"; import React from "react"; import { countries, order as orderFixture } from "../../fixtures"; import OrderCustomerAddressesEditDialog, { OrderCustomerAddressesEditDialogProps, } from "."; import { AddressEditDialogVariant } from "./types"; const order = orderFixture(""); const props: OrderCustomerAddressesEditDialogProps = { confirmButtonState: "default", variant: AddressEditDialogVariant.CHANGE_CUSTOMER, loading: false, onClose: () => undefined, onConfirm: () => undefined, open: true, errors: undefined, countries, }; storiesOf("Orders / Changing address in order", module) .addDecorator(Decorator) .add("address change when customer is changed", () => ( )) .add("shipping address change", () => ( )) .add("billing address change", () => ( )) .add("no customer addresses", () => ( )) .add("loading", () => ( ));