Fix types
This commit is contained in:
parent
b4da5edb7a
commit
297b04074b
2 changed files with 8 additions and 3 deletions
|
@ -1,5 +1,4 @@
|
|||
import { defineMessages, IntlShape } from "react-intl";
|
||||
import { TaxRateType } from "./types/globalTypes";
|
||||
|
||||
export const commonMessages = defineMessages({
|
||||
availability: {
|
||||
|
|
|
@ -2,7 +2,8 @@ import { storiesOf } from "@storybook/react";
|
|||
import React from "react";
|
||||
|
||||
import OrderDraftFinalize, {
|
||||
OrderDraftFinalizeDialogProps
|
||||
OrderDraftFinalizeDialogProps,
|
||||
OrderDraftFinalizeWarning
|
||||
} from "../../../orders/components/OrderDraftFinalizeDialog";
|
||||
import Decorator from "../../Decorator";
|
||||
|
||||
|
@ -21,6 +22,11 @@ storiesOf("Orders / OrderDraftFinalizeDialog", module)
|
|||
.add("with warnings", () => (
|
||||
<OrderDraftFinalize
|
||||
{...props}
|
||||
warnings={["no-shipping-method", "no-shipping", "no-billing", "no-user"]}
|
||||
warnings={[
|
||||
OrderDraftFinalizeWarning.NO_SHIPPING_METHOD,
|
||||
OrderDraftFinalizeWarning.NO_SHIPPING,
|
||||
OrderDraftFinalizeWarning.NO_BILLING,
|
||||
OrderDraftFinalizeWarning.NO_USER
|
||||
]}
|
||||
/>
|
||||
));
|
||||
|
|
Loading…
Reference in a new issue