Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Codeclimate fixes
dominik-zeglend9fbf3c5ce04
diff --git a/saleor/static/dashboard-next/auth/index.tsx b/saleor/static/dashboard-next/auth/index.tsxindex 7054485e9b..5759b729ff 100644--- a/saleor/static/dashboard-next/auth/index.tsx+++ b/saleor/static/dashboard-next/auth/index.tsx@@ -10,8 +10,8 @@ interface UserContext {}export const UserContext = React.createContext<UserContext>({- login: () => {},- logout: () => {}+ login: undefined,+ logout: undefined});export const getAuthToken = () =>diff --git a/saleor/static/dashboard-next/auth/views/Login.tsx b/saleor/static/dashboard-next/auth/views/Login.tsxindex dae0159223..27306af72e 100644--- a/saleor/static/dashboard-next/auth/views/Login.tsx+++ b/saleor/static/dashboard-next/auth/views/Login.tsx@@ -11,7 +11,7 @@ const LoginView: React.StatelessComponent = () => (return (<LoginPageerror={user === null}- onPasswordRecovery={() => {}}+ onPasswordRecovery={undefined}onSubmit={handleSubmit}/>);diff --git a/saleor/static/dashboard-next/components/FileUpload/FileUpload.tsx b/saleor/static/dashboard-next/components/FileUpload/FileUpload.tsxindex 40d2b3c7ae..af7476fb60 100644--- a/saleor/static/dashboard-next/components/FileUpload/FileUpload.tsx+++ b/saleor/static/dashboard-next/components/FileUpload/FileUpload.tsx@@ -37,7 +37,7 @@ const FileUpload = decorate<FileUploadProps>(<TextFieldclassName={classes.textField}disabled={disabled}- onChange={() => {}}+ onChange={undefined}value={value}/><Button disabled={disabled} onClick={() => this.upload.click()}>diff --git a/saleor/static/dashboard-next/components/SaveButtonBar/SaveButtonBar.tsx b/saleor/static/dashboard-next/components/SaveButtonBar/SaveButtonBar.tsxindex 7e633b27e5..4d186cbb76 100644--- a/saleor/static/dashboard-next/components/SaveButtonBar/SaveButtonBar.tsx+++ b/saleor/static/dashboard-next/components/SaveButtonBar/SaveButtonBar.tsx@@ -127,15 +127,13 @@ export const SaveButtonBar = decorate<SaveButtonBarProps>(</Button>)}<div className={classes.spacer} />- {!!onCancel && (- <Button- className={classes.cancelButton}- variant="flat"- onClick={onCancel}- >- {labels && labels.cancel ? labels.cancel : i18n.t("Cancel")}- </Button>- )}+ <Button+ className={classes.cancelButton}+ variant="flat"+ onClick={onCancel}+ >+ {labels && labels.cancel ? labels.cancel : i18n.t("Cancel")}+ </Button><Buttonvariant="contained"onClick={onSave}diff --git a/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsx b/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsxindex 517d6d729d..6ecd5209c1 100644--- a/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsx@@ -104,7 +104,7 @@ const OrderCustomer = decorate<OrderCustomerProps>(onClick={onCustomerEmailClick? onCustomerEmailClick(client.id)- : () => {}+ : undefined}>{client.email}diff --git a/saleor/static/dashboard-next/orders/components/OrderFulfillment/OrderFulfillment.tsx b/saleor/static/dashboard-next/orders/components/OrderFulfillment/OrderFulfillment.tsxindex 119d69b98a..b1eb795395 100644--- a/saleor/static/dashboard-next/orders/components/OrderFulfillment/OrderFulfillment.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderFulfillment/OrderFulfillment.tsx@@ -18,8 +18,8 @@ import { transformFulfillmentStatus } from "../..";import CardTitle from "../../../components/CardTitle";import Skeleton from "../../../components/Skeleton";import StatusLabel from "../../../components/StatusLabel/StatusLabel";-import i18n from "../../../i18n";import TableCellAvatar from "../../../components/TableCellAvatar";+import i18n from "../../../i18n";interface OrderFulfillmentProps {id?: string;@@ -79,7 +79,6 @@ const OrderFulfillment = decorate<OrderFulfillmentProps>(<Buttoncolor="secondary"variant="flat"- disabled={!onPackingSlipClick}onClick={onPackingSlipClick}>{i18n.t("Packing slip")}@@ -126,12 +125,12 @@ const OrderFulfillment = decorate<OrderFulfillmentProps>(</Table>{status !== "cancelled" && (<CardActions>- <Button disabled={!onTrackingCodeAdd} onClick={onTrackingCodeAdd}>+ <Button onClick={onTrackingCodeAdd}>{trackingCode? i18n.t("Add tracking number"): i18n.t("Edit tracking number")}</Button>- <Button disabled={!onFulfillmentCancel} onClick={onFulfillmentCancel}>+ <Button onClick={onFulfillmentCancel}>{i18n.t("Cancel shipment")}</Button></CardActions>diff --git a/saleor/static/dashboard-next/orders/components/OrderProducts/OrderProducts.tsx b/saleor/static/dashboard-next/orders/components/OrderProducts/OrderProducts.tsxindex 51bac88b77..73e2737760 100644--- a/saleor/static/dashboard-next/orders/components/OrderProducts/OrderProducts.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderProducts/OrderProducts.tsx@@ -71,18 +71,18 @@ const decorate = withStyles(paddingRight: theme.spacing.unit * 3}},+ flexBox: {+ display: "flex",+ flexDirection: "column" as "column",+ height: theme.spacing.unit * 12,+ justifyContent: "space-evenly"+ },link: {color: blue[500],cursor: "pointer"},textRight: {textAlign: "right" as "right"- },- flexBox: {- display: "flex",- flexDirection: "column" as "column",- height: theme.spacing.unit * 12,- justifyContent: "space-evenly"}}),{ name: "OrderProducts" }@@ -142,7 +142,7 @@ const OrderProducts = decorate<OrderProductsProps>({product ? (<spanonClick={onRowClick && onRowClick(product.id)}- className={onRowClick && classes.link}+ className={classes.link}>{product.name}</span>diff --git a/saleor/static/dashboard-next/orders/components/OrderSummary/OrderSummary.tsx b/saleor/static/dashboard-next/orders/components/OrderSummary/OrderSummary.tsxindex 2b55e55fb1..6b49f9925f 100644--- a/saleor/static/dashboard-next/orders/components/OrderSummary/OrderSummary.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderSummary/OrderSummary.tsx@@ -13,13 +13,13 @@ import {PaymentVariants,transformOrderStatus} from "../..";+import CardTitle from "../../../components/CardTitle";import PageHeader from "../../../components/PageHeader";import StatusLabel from "../../../components/StatusLabel/StatusLabel";import i18n from "../../../i18n";import OrderProducts, {OrderProductsProps} from "../OrderProducts/OrderProducts";-import CardTitle from "../../../components/CardTitle";interface MoneyType {amount: number;@@ -47,14 +47,14 @@ interface OrderSummaryProps extends OrderProductsProps {const decorate = withStyles(theme => ({- root: {},hr: {- height: 1,- display: "block",+ backgroundColor: theme.palette.grey[200],border: "none",- width: "100%",- backgroundColor: theme.palette.grey[200]+ display: "block",+ height: 1,+ width: "100%"},+ root: {},statusBar: {paddingTop: 0}@@ -112,12 +112,7 @@ const OrderSummary = decorate<OrderSummaryProps>(title={i18n.t("Order Summary")}toolbar={isDraft && (- <Button- color="secondary"- variant="flat"- disabled={!onProductAdd}- onClick={onProductAdd}- >+ <Button color="secondary" variant="flat" onClick={onProductAdd}>{i18n.t("Add product")}</Button>)@@ -155,34 +150,24 @@ const OrderSummary = decorate<OrderSummaryProps>(isDraft) && (<CardActions>{isDraft ? (- <Button disabled={!onCreate} onClick={onCreate}>- {i18n.t("Finalize")}- </Button>+ <Button onClick={onCreate}>{i18n.t("Finalize")}</Button>) : (<>{canGetInvoice && <Button>{i18n.t("Invoice")}</Button>}{canFulfill && (- <Button disabled={!onFulfill} onClick={onFulfill}>- {i18n.t("Fulfill")}- </Button>+ <Button onClick={onFulfill}>{i18n.t("Fulfill")}</Button>)}{canCapture && (- <Button disabled={!onCapture} onClick={onCapture}>- {i18n.t("Capture")}- </Button>+ <Button onClick={onCapture}>{i18n.t("Capture")}</Button>)}{canRefund && (- <Button disabled={!onRefund} onClick={onRefund}>- {i18n.t("Refund")}- </Button>+ <Button onClick={onRefund}>{i18n.t("Refund")}</Button>)}{canRelease && (- <Button disabled={!onRelease} onClick={onRelease}>- {i18n.t("Release")}- </Button>+ <Button onClick={onRelease}>{i18n.t("Release")}</Button>)}{canCancel && (- <Button disabled={!onOrderCancel} onClick={onOrderCancel}>+ <Button onClick={onOrderCancel}>{i18n.t("Cancel order")}</Button>)}diff --git a/saleor/static/dashboard-next/products/views/ProductCreate.tsx b/saleor/static/dashboard-next/products/views/ProductCreate.tsxindex d3657f298d..beb5863b62 100644--- a/saleor/static/dashboard-next/products/views/ProductCreate.tsx+++ b/saleor/static/dashboard-next/products/views/ProductCreate.tsx@@ -25,7 +25,7 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({return (<Navigator>{navigate => {- const handleAttributesEdit = () => {};+ const handleAttributesEdit = undefined;const handleBack = () => navigate(productListUrl);return (diff --git a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snapindex 3e9a80bf2d..7a8d50a094 100644--- a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap+++ b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap@@ -2873,20 +2873,6 @@ exports[`Storyshots Generics / SaveButtonBar disabled 1`] = `<divclass="Component-root-id">- <button- class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-raised-id Component-deleteButton-id"- tabindex="0"- type="button"- >- <span- class="MuiButton-label-id"- >- Remove- </span>- <span- class="MuiTouchRipple-root-id"- />- </button><divclass="Component-spacer-id"/>@@ -2925,20 +2911,6 @@ exports[`Storyshots Generics / SaveButtonBar error 1`] = `<divclass="Component-root-id">- <button- class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-raised-id Component-deleteButton-id"- tabindex="0"- type="button"- >- <span- class="MuiButton-label-id"- >- Remove- </span>- <span- class="MuiTouchRipple-root-id"- />- </button><divclass="Component-spacer-id"/>@@ -2979,20 +2951,6 @@ exports[`Storyshots Generics / SaveButtonBar idle 1`] = `<divclass="Component-root-id">- <button- class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-raised-id Component-deleteButton-id"- tabindex="0"- type="button"- >- <span- class="MuiButton-label-id"- >- Remove- </span>- <span- class="MuiTouchRipple-root-id"- />- </button><divclass="Component-spacer-id"/>@@ -3036,6 +2994,20 @@ exports[`Storyshots Generics / SaveButtonBar interactive error 1`] = `<divclass="Component-spacer-id"/>+ <button+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"+ tabindex="0"+ type="button"+ >+ <span+ class="MuiButton-label-id"+ >+ Cancel+ </span>+ <span+ class="MuiTouchRipple-root-id"+ />+ </button><buttonclass="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id"tabindex="0"@@ -3063,42 +3035,42 @@ exports[`Storyshots Generics / SaveButtonBar interactive success 1`] = `class="Component-spacer-id"/><button- class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id"+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"tabindex="0"type="button"><spanclass="MuiButton-label-id">- Save+ Cancel</span><spanclass="MuiTouchRipple-root-id"/></button>- </div>-</div>-`;--exports[`Storyshots Generics / SaveButtonBar loading 1`] = `-<div>- <div- class="Component-root-id"- ><button- class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-raised-id Component-deleteButton-id"+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id"tabindex="0"type="button"><spanclass="MuiButton-label-id">- Remove+ Save</span><spanclass="MuiTouchRipple-root-id"/></button>+ </div>+</div>+`;++exports[`Storyshots Generics / SaveButtonBar loading 1`] = `+<div>+ <div+ class="Component-root-id"+ ><divclass="Component-spacer-id"/>@@ -3156,20 +3128,6 @@ exports[`Storyshots Generics / SaveButtonBar success 1`] = `<divclass="Component-root-id">- <button- class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-raised-id Component-deleteButton-id"- tabindex="0"- type="button"- >- <span- class="MuiButton-label-id"- >- Remove- </span>- <span- class="MuiTouchRipple-root-id"- />- </button><divclass="Component-spacer-id"/>@@ -5947,9 +5905,8 @@ exports[`Storyshots Orders / OrderSummary order draft 1`] = `class="Component-toolbar-id"><button- class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id MuiButton-disabled-id"- disabled=""- tabindex="-1"+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"+ tabindex="0"type="button"><span@@ -5957,6 +5914,9 @@ exports[`Storyshots Orders / OrderSummary order draft 1`] = `>Add product</span>+ <span+ class="MuiTouchRipple-root-id"+ /></button></div></div>@@ -14183,6 +14143,20 @@ Tell lose part purpose do when. Whatever drug contain particularly defense.<divclass="Component-spacer-id"/>+ <button+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"+ tabindex="0"+ type="button"+ >+ <span+ class="MuiButton-label-id"+ >+ Cancel+ </span>+ <span+ class="MuiTouchRipple-root-id"+ />+ </button><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""@@ -14314,6 +14288,20 @@ Tell lose part purpose do when. Whatever drug contain particularly defense.<divclass="Component-spacer-id"/>+ <button+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"+ tabindex="0"+ type="button"+ >+ <span+ class="MuiButton-label-id"+ >+ Cancel+ </span>+ <span+ class="MuiTouchRipple-root-id"+ />+ </button><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""@@ -14448,6 +14436,20 @@ Tell lose part purpose do when. Whatever drug contain particularly defense.<divclass="Component-spacer-id"/>+ <button+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"+ tabindex="0"+ type="button"+ >+ <span+ class="MuiButton-label-id"+ >+ Cancel+ </span>+ <span+ class="MuiTouchRipple-root-id"+ />+ </button><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""@@ -14475,31 +14477,6 @@ exports[`Storyshots Views / Collections / Collection details default 1`] = `<divclass="Component-root-id">- <button- class="MuiButtonBase-root-id MuiIconButton-root-id MuiIconButton-colorInherit-id Component-menuButton-id"- tabindex="0"- type="button"- >- <span- class="MuiIconButton-label-id"- >- <svg- aria-hidden="true"- class="MuiSvgIcon-root-id"- focusable="false"- viewBox="0 0 24 24"- >- <g>- <path- d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"- />- </g>- </svg>- </span>- <span- class="MuiTouchRipple-root-id"- />- </button><h2class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id">@@ -14560,7 +14537,7 @@ exports[`Storyshots Views / Collections / Collection details default 1`] = `/><imgclass="Component-image-id"- src="placeholder540x540.png"+ src="summer.jpg"/><spanclass="MuiTypography-root-id MuiTypography-caption-id Component-link-id"@@ -15043,6 +15020,20 @@ exports[`Storyshots Views / Collections / Collection details default 1`] = `<divclass="Component-spacer-id"/>+ <button+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"+ tabindex="0"+ type="button"+ >+ <span+ class="MuiButton-label-id"+ >+ Cancel+ </span>+ <span+ class="MuiTouchRipple-root-id"+ />+ </button><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""@@ -15070,31 +15061,6 @@ exports[`Storyshots Views / Collections / Collection details when loading 1`] =<divclass="Component-root-id">- <button- class="MuiButtonBase-root-id MuiIconButton-root-id MuiIconButton-colorInherit-id Component-menuButton-id"- tabindex="0"- type="button"- >- <span- class="MuiIconButton-label-id"- >- <svg- aria-hidden="true"- class="MuiSvgIcon-root-id"- focusable="false"- viewBox="0 0 24 24"- >- <g>- <path- d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"- />- </g>- </svg>- </span>- <span- class="MuiTouchRipple-root-id"- />- </button><h2class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id">@@ -15536,6 +15502,20 @@ exports[`Storyshots Views / Collections / Collection details when loading 1`] =<divclass="Component-spacer-id"/>+ <button+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"+ tabindex="0"+ type="button"+ >+ <span+ class="MuiButton-label-id"+ >+ Cancel+ </span>+ <span+ class="MuiTouchRipple-root-id"+ />+ </button><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""@@ -16159,31 +16139,6 @@ exports[`Storyshots Views / Customers / Customer details default 1`] = `<divclass="Component-root-id">- <button- class="MuiButtonBase-root-id MuiIconButton-root-id MuiIconButton-colorInherit-id Component-menuButton-id"- tabindex="0"- type="button"- >- <span- class="MuiIconButton-label-id"- >- <svg- aria-hidden="true"- class="MuiSvgIcon-root-id"- focusable="false"- viewBox="0 0 24 24"- >- <g>- <path- d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"- />- </g>- </svg>- </span>- <span- class="MuiTouchRipple-root-id"- />- </button><h2class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id">@@ -16747,37 +16702,12 @@ exports[`Storyshots Views / Customers / Customer details when loading 1`] = `<divclass="Component-root-id">- <button- class="MuiButtonBase-root-id MuiIconButton-root-id MuiIconButton-colorInherit-id Component-menuButton-id"- tabindex="0"- type="button"+ <h2+ class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"><span- class="MuiIconButton-label-id"- >- <svg- aria-hidden="true"- class="MuiSvgIcon-root-id"- focusable="false"- viewBox="0 0 24 24"- >- <g>- <path- d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"- />- </g>- </svg>- </span>- <span- class="MuiTouchRipple-root-id"- />- </button>- <h2- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"- >- <span- class="Skeleton-skeleton-id"- style="width:10em"+ class="Skeleton-skeleton-id"+ style="width:10em"></span>@@ -17789,31 +17719,6 @@ exports[`Storyshots Views / Customers / Edit customer default 1`] = `<divclass="Component-root-id">- <button- class="MuiButtonBase-root-id MuiIconButton-root-id MuiIconButton-colorInherit-id Component-menuButton-id"- tabindex="0"- type="button"- >- <span- class="MuiIconButton-label-id"- >- <svg- aria-hidden="true"- class="MuiSvgIcon-root-id"- focusable="false"- viewBox="0 0 24 24"- >- <g>- <path- d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"- />- </g>- </svg>- </span>- <span- class="MuiTouchRipple-root-id"- />- </button><h2class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id">@@ -17887,6 +17792,20 @@ exports[`Storyshots Views / Customers / Edit customer default 1`] = `<divclass="Component-spacer-id"/>+ <button+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"+ tabindex="0"+ type="button"+ >+ <span+ class="MuiButton-label-id"+ >+ Cancel+ </span>+ <span+ class="MuiTouchRipple-root-id"+ />+ </button><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""@@ -17914,31 +17833,6 @@ exports[`Storyshots Views / Customers / Edit customer when adding new customer 1<divclass="Component-root-id">- <button- class="MuiButtonBase-root-id MuiIconButton-root-id MuiIconButton-colorInherit-id Component-menuButton-id"- tabindex="0"- type="button"- >- <span- class="MuiIconButton-label-id"- >- <svg- aria-hidden="true"- class="MuiSvgIcon-root-id"- focusable="false"- viewBox="0 0 24 24"- >- <g>- <path- d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"- />- </g>- </svg>- </span>- <span- class="MuiTouchRipple-root-id"- />- </button><h2class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id">@@ -18012,6 +17906,20 @@ exports[`Storyshots Views / Customers / Edit customer when adding new customer 1<divclass="Component-spacer-id"/>+ <button+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"+ tabindex="0"+ type="button"+ >+ <span+ class="MuiButton-label-id"+ >+ Cancel+ </span>+ <span+ class="MuiTouchRipple-root-id"+ />+ </button><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""@@ -18039,31 +17947,6 @@ exports[`Storyshots Views / Customers / Edit customer when loading 1`] = `<divclass="Component-root-id">- <button- class="MuiButtonBase-root-id MuiIconButton-root-id MuiIconButton-colorInherit-id Component-menuButton-id"- tabindex="0"- type="button"- >- <span- class="MuiIconButton-label-id"- >- <svg- aria-hidden="true"- class="MuiSvgIcon-root-id"- focusable="false"- viewBox="0 0 24 24"- >- <g>- <path- d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"- />- </g>- </svg>- </span>- <span- class="MuiTouchRipple-root-id"- />- </button><h2class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id">@@ -18139,6 +18022,20 @@ exports[`Storyshots Views / Customers / Edit customer when loading 1`] = `<divclass="Component-spacer-id"/>+ <button+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"+ tabindex="0"+ type="button"+ >+ <span+ class="MuiButton-label-id"+ >+ Cancel+ </span>+ <span+ class="MuiTouchRipple-root-id"+ />+ </button><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""@@ -18166,31 +18063,6 @@ exports[`Storyshots Views / Customers / Edit customer with errors 1`] = `<divclass="Component-root-id">- <button- class="MuiButtonBase-root-id MuiIconButton-root-id MuiIconButton-colorInherit-id Component-menuButton-id"- tabindex="0"- type="button"- >- <span- class="MuiIconButton-label-id"- >- <svg- aria-hidden="true"- class="MuiSvgIcon-root-id"- focusable="false"- viewBox="0 0 24 24"- >- <g>- <path- d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"- />- </g>- </svg>- </span>- <span- class="MuiTouchRipple-root-id"- />- </button><h2class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id">@@ -18269,6 +18141,20 @@ exports[`Storyshots Views / Customers / Edit customer with errors 1`] = `<divclass="Component-spacer-id"/>+ <button+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"+ tabindex="0"+ type="button"+ >+ <span+ class="MuiButton-label-id"+ >+ Cancel+ </span>+ <span+ class="MuiTouchRipple-root-id"+ />+ </button><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""@@ -22337,9 +22223,8 @@ exports[`Storyshots Views / Orders / Order details when loading data 1`] = `class="Component-toolbar-id"><button- class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id MuiButton-disabled-id"- disabled=""- tabindex="-1"+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-textSecondary-id MuiButton-flat-id MuiButton-flatSecondary-id"+ tabindex="0"type="button"><span@@ -22347,6 +22232,9 @@ exports[`Storyshots Views / Orders / Order details when loading data 1`] = `>Packing slip</span>+ <span+ class="MuiTouchRipple-root-id"+ /></button></div></div>@@ -22420,9 +22308,8 @@ exports[`Storyshots Views / Orders / Order details when loading data 1`] = `class="MuiCardActions-root-id"><button- class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id MuiButton-disabled-id MuiCardActions-action-id"- disabled=""- tabindex="-1"+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id MuiCardActions-action-id"+ tabindex="0"type="button"><span@@ -22430,11 +22317,13 @@ exports[`Storyshots Views / Orders / Order details when loading data 1`] = `>Edit tracking number</span>+ <span+ class="MuiTouchRipple-root-id"+ /></button><button- class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id MuiButton-disabled-id MuiCardActions-action-id"- disabled=""- tabindex="-1"+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id MuiCardActions-action-id"+ tabindex="0"type="button"><span@@ -22442,6 +22331,9 @@ exports[`Storyshots Views / Orders / Order details when loading data 1`] = `>Cancel shipment</span>+ <span+ class="MuiTouchRipple-root-id"+ /></button></div></div>@@ -23446,339 +23338,50 @@ exports[`Storyshots Views / Orders / Order list when no data 1`] = `tabindex="0"type="button">- <span- class="MuiIconButton-label-id"- >- <svg- aria-hidden="true"- class="MuiSvgIcon-root-id"- focusable="false"- viewBox="0 0 24 24"- >- <path- d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"- />- </svg>- </span>- <span- class="MuiTouchRipple-root-id"- />- </button>- </div>- </div>- </td>- </tr>- </tfoot>- <tbody- class="MuiTableBody-root-id"- >- <tr- class="MuiTableRow-root-id"- >- <td- class="MuiTableCell-root-id MuiTableCell-body-id"- colspan="6"- >- No orders found- </td>- </tr>- </tbody>- </table>- </div>- </div>-</div>-`;--exports[`Storyshots Views / Pages / Page details when loading 1`] = `-<div>- <form>- <div- class="Component-md-id "- >- <div- class="Component-root-id"- >- <button- class="MuiButtonBase-root-id MuiIconButton-root-id MuiIconButton-colorInherit-id Component-menuButton-id"- tabindex="0"- type="button"- >- <span- class="MuiIconButton-label-id"- >- <svg- aria-hidden="true"- class="MuiSvgIcon-root-id"- focusable="false"- viewBox="0 0 24 24"- >- <g>- <path- d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"- />- </g>- </svg>- </span>- <span- class="MuiTouchRipple-root-id"- />- </button>- <h2- class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id"- >- <span- class="Skeleton-skeleton-id"- style="width:10em"- >- - </span>- </h2>- <div- class="Component-action-id"- />- </div>- <div- class="Component-root-id"- >- <div>- <div- class="MuiPaper-root-id MuiPaper-elevation1-id MuiPaper-rounded-id MuiCard-root-id"- >- <div- class="MuiCardContent-root-id"- >- <div- class="MuiFormControl-root-id MuiFormControl-fullWidth-id Component-addHelperTextPadding-id"- >- <label- class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"- data-shrink="false"- >- Title- </label>- <div- class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"- >- <input- aria-invalid="false"- autofocus=""- class="MuiInput-input-id MuiInput-disabled-id"- disabled=""- name="title"- type="text"- value=""- />- </div>- </div>- <div- class="Component-spacer-id"- />- <div- class="MuiFormControl-root-id"- style="width:100%"- >- <label- class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"- data-shrink="false"- >- Content- </label>- <div- class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-multiline-id MuiInput-underline-id"- >- <div- class="Textarea-root-id"- style="height:19px"- >- <textarea- aria-hidden="true"- class="Textarea-textarea-id Textarea-shadow-id"- readonly=""- rows="1"- tabindex="-1"- />- <textarea- aria-hidden="true"- class="Textarea-textarea-id Textarea-shadow-id"- readonly=""- rows="1"- tabindex="-1"- />- <textarea- aria-invalid="false"- class="Textarea-textarea-id MuiInput-input-id MuiInput-disabled-id MuiInput-inputMultiline-id"- disabled=""- name="content"- rows="1"- type="text"- />- </div>- </div>- <p- class="MuiFormHelperText-root-id"- >- Select text to enable text-formatting tools.- </p>- </div>- </div>- </div>- </div>- <div>- <div- class="MuiPaper-root-id MuiPaper-elevation1-id MuiPaper-rounded-id MuiCard-root-id"- >- <div- class="MuiCardContent-root-id"- >- <div- class="MuiFormControl-root-id MuiFormControl-fullWidth-id"- >- <label- class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"- data-shrink="false"- >- Slug- </label>- <div- class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"- >- <input- aria-invalid="false"- class="MuiInput-input-id MuiInput-disabled-id"- disabled=""- name="slug"- type="text"- value=""- />- </div>- <p- class="MuiFormHelperText-root-id"- >- Slug is being used to create page URL- </p>- </div>- <div- class="Component-spacer-id"- />- <div- class="MuiFormControl-root-id MuiFormControl-fullWidth-id"- >- <label- class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"- data-shrink="true"- >- Available on- </label>- <div- class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"- >- <input- aria-invalid="false"- class="MuiInput-input-id MuiInput-disabled-id MuiInput-inputType-id"- disabled=""- name="availableOn"- type="date"- value=""- />- </div>- </div>- <div- class="Component-spacer-id"- />- <div- class="Component-spacer-id"- />- <label- class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"- >- <span- class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiIconButton-root-id MuiIconButton-disabled-id MuiSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiSwitchBase-disabled-id MuiCheckbox-disabled-id"- tabindex="-1"- >- <span- class="MuiIconButton-label-id"- >- <svg- aria-hidden="true"- class="MuiSvgIcon-root-id"- focusable="false"- viewBox="0 0 24 24"+ <span+ class="MuiIconButton-label-id">- <path- d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"- />- </svg>- <input- class="MuiSwitchBase-input-id"- disabled=""- name="isVisible"- type="checkbox"+ <svg+ aria-hidden="true"+ class="MuiSvgIcon-root-id"+ focusable="false"+ viewBox="0 0 24 24"+ >+ <path+ d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"+ />+ </svg>+ </span>+ <span+ class="MuiTouchRipple-root-id"/>- </span>- </span>- <span- class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id"- >- Published- </span>- </label>- </div>- </div>- </div>- </div>- <div- class="Component-root-id"- >- <button- class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-raised-id Component-deleteButton-id"- tabindex="0"- type="button"- >- <span- class="MuiButton-label-id"- >- Remove- </span>- <span- class="MuiTouchRipple-root-id"- />- </button>- <div- class="Component-spacer-id"- />- <button- class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"- tabindex="0"- type="button"- >- <span- class="MuiButton-label-id"- >- Cancel- </span>- <span- class="MuiTouchRipple-root-id"- />- </button>- <button- class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"- disabled=""- tabindex="-1"- type="button"+ </button>+ </div>+ </div>+ </td>+ </tr>+ </tfoot>+ <tbody+ class="MuiTableBody-root-id">- <span- class="MuiButton-label-id"+ <tr+ class="MuiTableRow-root-id">- Save- </span>- </button>- </div>+ <td+ class="MuiTableCell-root-id MuiTableCell-body-id"+ colspan="6"+ >+ No orders found+ </td>+ </tr>+ </tbody>+ </table></div>- </form>+ </div></div>`;-exports[`Storyshots Views / Pages / Page details with delete button 1`] = `+exports[`Storyshots Views / Pages / Page details when loading 1`] = `<div><form><div@@ -23840,21 +23443,22 @@ exports[`Storyshots Views / Pages / Page details with delete button 1`] = `class="MuiFormControl-root-id MuiFormControl-fullWidth-id Component-addHelperTextPadding-id"><label- class="MuiFormLabel-root-id MuiFormLabel-filled-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"- data-shrink="true"+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"+ data-shrink="false">Title</label><div- class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"+ class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"><inputaria-invalid="false"autofocus=""- class="MuiInput-input-id"+ class="MuiInput-input-id MuiInput-disabled-id"+ disabled=""name="title"type="text"- value="Lorem Ipsum"+ value=""/></div></div>@@ -23866,13 +23470,13 @@ exports[`Storyshots Views / Pages / Page details with delete button 1`] = `style="width:100%"><label- class="MuiFormLabel-root-id MuiFormLabel-filled-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"- data-shrink="true"+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"+ data-shrink="false">Content</label><div- class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-multiline-id MuiInput-underline-id"+ class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-multiline-id MuiInput-underline-id"><divclass="Textarea-root-id"@@ -23891,22 +23495,19 @@ exports[`Storyshots Views / Pages / Page details with delete button 1`] = `readonly=""rows="1"tabindex="-1"- >- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin bibendum et justo sit amet viverra. Maecenas euismod auctor nisi et tincidunt. Maecenas ante urna, aliquet at odio sed, gravida efficitur purus. Morbi ut dapibus ante. Nulla eu neque sit amet odio tincidunt porttitor eu quis purus. Aliquam at diam sit amet turpis varius semper vitae non lectus. Vivamus lectus ligula, molestie eu augue eu, cursus tincidunt sem. Nam ornare egestas tincidunt.- </textarea>+ /><textareaaria-invalid="false"- class="Textarea-textarea-id MuiInput-input-id MuiInput-inputMultiline-id"+ class="Textarea-textarea-id MuiInput-input-id MuiInput-disabled-id MuiInput-inputMultiline-id"+ disabled=""name="content"rows="1"type="text"- >- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin bibendum et justo sit amet viverra. Maecenas euismod auctor nisi et tincidunt. Maecenas ante urna, aliquet at odio sed, gravida efficitur purus. Morbi ut dapibus ante. Nulla eu neque sit amet odio tincidunt porttitor eu quis purus. Aliquam at diam sit amet turpis varius semper vitae non lectus. Vivamus lectus ligula, molestie eu augue eu, cursus tincidunt sem. Nam ornare egestas tincidunt.- </textarea>+ /></div></div><p- class="MuiFormHelperText-root-id MuiFormHelperText-filled-id"+ class="MuiFormHelperText-root-id">Select text to enable text-formatting tools.</p>@@ -23925,24 +23526,25 @@ exports[`Storyshots Views / Pages / Page details with delete button 1`] = `class="MuiFormControl-root-id MuiFormControl-fullWidth-id"><label- class="MuiFormLabel-root-id MuiFormLabel-filled-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"- data-shrink="true"+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"+ data-shrink="false">Slug</label><div- class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"+ class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"><inputaria-invalid="false"- class="MuiInput-input-id"+ class="MuiInput-input-id MuiInput-disabled-id"+ disabled=""name="slug"type="text"- value="lorem-ipsum-dolor"+ value=""/></div><p- class="MuiFormHelperText-root-id MuiFormHelperText-filled-id"+ class="MuiFormHelperText-root-id">Slug is being used to create page URL</p>@@ -23954,20 +23556,21 @@ exports[`Storyshots Views / Pages / Page details with delete button 1`] = `class="MuiFormControl-root-id MuiFormControl-fullWidth-id"><label- class="MuiFormLabel-root-id MuiFormLabel-filled-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"+ class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"data-shrink="true">Available on</label><div- class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"+ class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"><inputaria-invalid="false"- class="MuiInput-input-id MuiInput-inputType-id"+ class="MuiInput-input-id MuiInput-disabled-id MuiInput-inputType-id"+ disabled=""name="availableOn"type="date"- value="2018-03-20T16:39:08.850105+00:00"+ value=""/></div></div>@@ -23978,10 +23581,11 @@ exports[`Storyshots Views / Pages / Page details with delete button 1`] = `class="Component-spacer-id"/><label- class="MuiFormControlLabel-root-id"+ class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"><span- class="MuiButtonBase-root-id MuiIconButton-root-id MuiSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiSwitchBase-checked-id MuiCheckbox-checked-id"+ class="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiIconButton-root-id MuiIconButton-disabled-id MuiSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiSwitchBase-disabled-id MuiCheckbox-disabled-id"+ tabindex="-1"><spanclass="MuiIconButton-label-id"@@ -23993,22 +23597,19 @@ exports[`Storyshots Views / Pages / Page details with delete button 1`] = `viewBox="0 0 24 24"><path- d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"+ d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg><input- checked=""class="MuiSwitchBase-input-id"+ disabled=""name="isVisible"type="checkbox"/></span>- <span- class="MuiTouchRipple-root-id"- /></span><span- class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id"+ class="MuiTypography-root-id MuiTypography-body1-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id">Published</span>@@ -24106,12 +23707,7 @@ exports[`Storyshots Views / Pages / Page details with initial data 1`] = `<h2class="MuiTypography-root-id MuiTypography-title-id PageHeader-title-id">- <span- class="Skeleton-skeleton-id"- style="width:10em"- >- - </span>+ Lorem Ipsum</h2><divclass="Component-action-id"@@ -29996,6 +29592,20 @@ exports[`Storyshots Views / Products / Product edit when data is fully loaded 1`<divclass="Component-spacer-id"/>+ <button+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"+ tabindex="0"+ type="button"+ >+ <span+ class="MuiButton-label-id"+ >+ Cancel+ </span>+ <span+ class="MuiTouchRipple-root-id"+ />+ </button><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""@@ -30765,6 +30375,20 @@ exports[`Storyshots Views / Products / Product edit when loading data 1`] = `<divclass="Component-spacer-id"/>+ <button+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"+ tabindex="0"+ type="button"+ >+ <span+ class="MuiButton-label-id"+ >+ Cancel+ </span>+ <span+ class="MuiTouchRipple-root-id"+ />+ </button><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""@@ -31731,6 +31355,20 @@ exports[`Storyshots Views / Products / Product edit when product has no images 1<divclass="Component-spacer-id"/>+ <button+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"+ tabindex="0"+ type="button"+ >+ <span+ class="MuiButton-label-id"+ >+ Cancel+ </span>+ <span+ class="MuiTouchRipple-root-id"+ />+ </button><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""@@ -32954,6 +32592,20 @@ exports[`Storyshots Views / Products / Product edit when product has no variants<divclass="Component-spacer-id"/>+ <button+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"+ tabindex="0"+ type="button"+ >+ <span+ class="MuiButton-label-id"+ >+ Cancel+ </span>+ <span+ class="MuiTouchRipple-root-id"+ />+ </button><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""@@ -33229,23 +32881,23 @@ exports[`Storyshots Views / Products / Product image details when loaded data 1`<divclass="Component-root-id">+ <div+ class="Component-spacer-id"+ /><button- class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-raised-id Component-deleteButton-id"+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"tabindex="0"type="button"><spanclass="MuiButton-label-id">- Remove+ Cancel</span><spanclass="MuiTouchRipple-root-id"/></button>- <div- class="Component-spacer-id"- /><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""@@ -33452,23 +33104,23 @@ exports[`Storyshots Views / Products / Product image details when loading data 1<divclass="Component-root-id">+ <div+ class="Component-spacer-id"+ /><button- class="MuiButtonBase-root-id MuiButton-root-id MuiButton-contained-id MuiButton-raised-id Component-deleteButton-id"+ class="MuiButtonBase-root-id MuiButton-root-id MuiButton-text-id MuiButton-flat-id Component-cancelButton-id"tabindex="0"type="button"><spanclass="MuiButton-label-id">- Remove+ Cancel</span><spanclass="MuiTouchRipple-root-id"/></button>- <div- class="Component-spacer-id"- /><buttonclass="MuiButtonBase-root-id MuiButtonBase-disabled-id MuiButton-root-id MuiButton-contained-id MuiButton-containedSecondary-id MuiButton-raised-id MuiButton-raisedSecondary-id MuiButton-disabled-id"disabled=""diff --git a/saleor/static/dashboard-next/storybook/stories/attributes/AttributeDetailsPage.tsx b/saleor/static/dashboard-next/storybook/stories/attributes/AttributeDetailsPage.tsxindex 81c54e99e5..2317d257f5 100644--- a/saleor/static/dashboard-next/storybook/stories/attributes/AttributeDetailsPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/attributes/AttributeDetailsPage.tsx@@ -12,18 +12,18 @@ storiesOf("Views / Attributes / Attribute details", module)attribute={attributes[0]}disabled={false}saveButtonBarState="default"- onBack={() => {}}- onDelete={() => {}}- onSubmit={() => {}}+ onBack={() => undefined}+ onDelete={undefined}+ onSubmit={() => undefined}/>)).add("when loading", () => (<AttributeDetailsPagedisabled={true}saveButtonBarState="default"- onBack={() => {}}- onDelete={() => {}}- onSubmit={() => {}}+ onBack={() => undefined}+ onDelete={undefined}+ onSubmit={() => undefined}/>)).add("when no values", () => (@@ -35,8 +35,8 @@ storiesOf("Views / Attributes / Attribute details", module)}}disabled={false}saveButtonBarState="default"- onBack={() => {}}- onDelete={() => {}}- onSubmit={() => {}}+ onBack={() => undefined}+ onDelete={undefined}+ onSubmit={() => undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/auth/LoginPage.tsx b/saleor/static/dashboard-next/storybook/stories/auth/LoginPage.tsxindex 4af7937a10..0e504f328d 100644--- a/saleor/static/dashboard-next/storybook/stories/auth/LoginPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/auth/LoginPage.tsx@@ -9,10 +9,14 @@ storiesOf("Views / Authentication / Log in", module).add("default", () => (<LoginPageerror={false}- onPasswordRecovery={() => {}}- onSubmit={() => {}}+ onPasswordRecovery={undefined}+ onSubmit={() => undefined}/>)).add("error", () => (- <LoginPage error={true} onPasswordRecovery={() => {}} onSubmit={() => {}} />+ <LoginPage+ error={true}+ onPasswordRecovery={undefined}+ onSubmit={() => undefined}+ />));diff --git a/saleor/static/dashboard-next/storybook/stories/categories/CategoryDeleteDialog.tsx b/saleor/static/dashboard-next/storybook/stories/categories/CategoryDeleteDialog.tsxindex 19fd175968..8e1fd6b463 100644--- a/saleor/static/dashboard-next/storybook/stories/categories/CategoryDeleteDialog.tsx+++ b/saleor/static/dashboard-next/storybook/stories/categories/CategoryDeleteDialog.tsx@@ -13,8 +13,8 @@ storiesOf("Categories / CategoryDeleteDialog", module)<CategoryDeleteDialogname={category.name}open={true}- onClose={() => {}}- onConfirm={() => {}}+ onClose={undefined}+ onConfirm={undefined}productCount={0}/>))@@ -23,7 +23,7 @@ storiesOf("Categories / CategoryDeleteDialog", module)name={category.name}open={true}productCount={100}- onClose={() => {}}- onConfirm={() => {}}+ onClose={undefined}+ onConfirm={undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/categories/CategoryDetailsPage.tsx b/saleor/static/dashboard-next/storybook/stories/categories/CategoryDetailsPage.tsxindex 9ddbd04ad9..1de7098772 100644--- a/saleor/static/dashboard-next/storybook/stories/categories/CategoryDetailsPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/categories/CategoryDetailsPage.tsx@@ -20,30 +20,30 @@ storiesOf("Views / Categories / Category details", module)hasPreviousPage: true}}loading={false}- onAddCategory={() => {}}- onAddProduct={() => {}}- onBack={() => {}}- onCategoryClick={() => () => {}}- onDelete={() => {}}- onEdit={() => {}}- onNextPage={() => {}}- onPreviousPage={() => {}}- onProductClick={() => () => {}}+ onAddCategory={undefined}+ onAddProduct={undefined}+ onBack={() => undefined}+ onCategoryClick={() => undefined}+ onDelete={undefined}+ onEdit={undefined}+ onNextPage={undefined}+ onPreviousPage={undefined}+ onProductClick={() => undefined}/>)).add("when in root", () => (<CategoryDetailsPagesubcategories={category.children}loading={false}- onAddCategory={() => {}}- onAddProduct={() => {}}- onBack={() => {}}- onCategoryClick={() => () => {}}- onDelete={() => {}}- onEdit={() => {}}- onNextPage={() => {}}- onPreviousPage={() => {}}- onProductClick={() => () => {}}+ onAddCategory={undefined}+ onAddProduct={undefined}+ onBack={() => undefined}+ onCategoryClick={() => undefined}+ onDelete={undefined}+ onEdit={undefined}+ onNextPage={undefined}+ onPreviousPage={undefined}+ onProductClick={() => undefined}/>)).add("when loading", () => <CategoryDetailsPage loading={true} />);diff --git a/saleor/static/dashboard-next/storybook/stories/categories/CategoryEditPage.tsx b/saleor/static/dashboard-next/storybook/stories/categories/CategoryEditPage.tsxindex 3499c5ba0b..4ef45b1388 100644--- a/saleor/static/dashboard-next/storybook/stories/categories/CategoryEditPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/categories/CategoryEditPage.tsx@@ -15,23 +15,23 @@ storiesOf("Views / Categories / Category edit", module).add("default", () => (<CategoryEditPagecategory={category}- onBack={() => {}}- onSubmit={() => {}}+ onBack={() => undefined}+ onSubmit={() => undefined}/>)).add("when loading", () => (<CategoryEditPagecategory={category}disabled={true}- onBack={() => {}}- onSubmit={() => {}}+ onBack={() => undefined}+ onSubmit={() => undefined}/>)).add("with errors", () => (<CategoryEditPagecategory={category}errors={errors}- onBack={() => {}}- onSubmit={() => {}}+ onBack={() => undefined}+ onSubmit={() => undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/categories/CategoryProducts.tsx b/saleor/static/dashboard-next/storybook/stories/categories/CategoryProducts.tsxindex 125e50ad81..fbd54afcea 100644--- a/saleor/static/dashboard-next/storybook/stories/categories/CategoryProducts.tsx+++ b/saleor/static/dashboard-next/storybook/stories/categories/CategoryProducts.tsx@@ -9,38 +9,38 @@ const products = [{id: "UHJvZHVjdDox",name: "Gardner, Graham and King",- thumbnailUrl: placeholder,productType: {id: "1",name: "T-Shirt"- }+ },+ thumbnailUrl: placeholder},{id: "UHJvZHVjdDoy",name: "Gardner, Graham and King",- thumbnailUrl: placeholder,productType: {id: "1",name: "T-Shirt"- }+ },+ thumbnailUrl: placeholder},{id: "UHJvZHVjdDoz",name: "Gardner, Graham and King",- thumbnailUrl: placeholder,productType: {id: "1",name: "T-Shirt"- }+ },+ thumbnailUrl: placeholder},{id: "UHJvZHVjdDoa",name: "Gardner, Graham and King",- thumbnailUrl: placeholder,productType: {id: "1",name: "T-Shirt"- }+ },+ thumbnailUrl: placeholder}];@@ -51,9 +51,9 @@ storiesOf("Categories / CategoryProducts", module)hasNextPage={true}hasPreviousPage={false}products={[]}- onAddProduct={() => {}}- onNextPage={() => {}}- onPreviousPage={() => {}}+ onAddProduct={undefined}+ onNextPage={undefined}+ onPreviousPage={undefined}/>)).add("with initial data", () => (@@ -61,9 +61,9 @@ storiesOf("Categories / CategoryProducts", module)hasNextPage={true}hasPreviousPage={false}products={products}- onAddProduct={() => {}}- onNextPage={() => {}}- onPreviousPage={() => {}}+ onAddProduct={undefined}+ onNextPage={undefined}+ onPreviousPage={undefined}/>)).add("with clickable rows", () => (@@ -71,18 +71,18 @@ storiesOf("Categories / CategoryProducts", module)hasNextPage={true}hasPreviousPage={false}products={products}- onAddProduct={() => {}}- onNextPage={() => {}}- onPreviousPage={() => {}}- onRowClick={() => () => {}}+ onAddProduct={undefined}+ onNextPage={undefined}+ onPreviousPage={undefined}+ onRowClick={() => undefined}/>)).add("when loading data", () => (<CategoryProductshasNextPage={true}hasPreviousPage={false}- onAddProduct={() => {}}- onNextPage={() => {}}- onPreviousPage={() => {}}+ onAddProduct={undefined}+ onNextPage={undefined}+ onPreviousPage={undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/collections/CollectionDetailsPage.tsx b/saleor/static/dashboard-next/storybook/stories/collections/CollectionDetailsPage.tsxindex 7b66f3b695..d0c92be33b 100644--- a/saleor/static/dashboard-next/storybook/stories/collections/CollectionDetailsPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/collections/CollectionDetailsPage.tsx@@ -1,9 +1,7 @@import { storiesOf } from "@storybook/react";import * as React from "react";-// FIXME: storyshots have problem with .jpg files, figure it out-// import * as placeholderImage from "../../../../placeholders/products-list/summer.jpg";-import * as placeholderImage from "../../../../images/placeholder540x540.png";+import * as placeholderImage from "../../../../placeholders/products-list/summer.jpg";import { storefrontUrl } from "../../../collections";import CollectionDetailsPage from "../../../collections/components/CollectionDetailsPage";import { collections as collectionsFixture } from "../../../collections/fixtures";@@ -11,16 +9,16 @@ import Decorator from "../../Decorator";const collection = collectionsFixture(placeholderImage)[0];const callbacks = {- onBack: () => {},- onDelete: () => {},- onImageRemove: () => {},- onShow: () => {},- onSubmit: () => {},- onNextPage: () => {},- onPreviousPage: () => {},- onProductAdd: () => {},- onProductClick: () => () => {},- onProductRemove: () => () => {},+ onBack: undefined,+ onDelete: undefined,+ onImageRemove: undefined,+ onNextPage: undefined,+ onPreviousPage: undefined,+ onProductAdd: undefined,+ onProductClick: () => undefined,+ onProductRemove: () => undefined,+ onShow: undefined,+ onSubmit: () => undefined,storefrontUrl};diff --git a/saleor/static/dashboard-next/storybook/stories/components/ActionDialog.tsx b/saleor/static/dashboard-next/storybook/stories/components/ActionDialog.tsxindex 090f81700a..4b06b420fd 100644--- a/saleor/static/dashboard-next/storybook/stories/components/ActionDialog.tsx+++ b/saleor/static/dashboard-next/storybook/stories/components/ActionDialog.tsx@@ -10,8 +10,8 @@ storiesOf("Generics / ActionDialog", module)<ActionDialogtitle="Example title"open={true}- onClose={() => {}}- onConfirm={() => {}}+ onClose={undefined}+ onConfirm={undefined}>Example content</ActionDialog>diff --git a/saleor/static/dashboard-next/storybook/stories/components/AddressEdit.tsx b/saleor/static/dashboard-next/storybook/stories/components/AddressEdit.tsxindex 19ee1d1abb..83c85b3916 100644--- a/saleor/static/dashboard-next/storybook/stories/components/AddressEdit.tsx+++ b/saleor/static/dashboard-next/storybook/stories/components/AddressEdit.tsx@@ -15,7 +15,7 @@ storiesOf("Generics / AddressEdit", module)data={customer.defaultBillingAddress}prefixes={prefixes}countries={countries}- onChange={() => {}}+ onChange={undefined}/></Container>));diff --git a/saleor/static/dashboard-next/storybook/stories/components/EditableTableCell.tsx b/saleor/static/dashboard-next/storybook/stories/components/EditableTableCell.tsxindex 0e769687ac..cca2184a62 100644--- a/saleor/static/dashboard-next/storybook/stories/components/EditableTableCell.tsx+++ b/saleor/static/dashboard-next/storybook/stories/components/EditableTableCell.tsx@@ -23,7 +23,7 @@ storiesOf("Generics / EditableTableCell", module)<TableCell>Some value</TableCell><EditableTableCellvalue={"Some editable text"}- onConfirm={() => () => {}}+ onConfirm={() => undefined}/><TableCell>Some value</TableCell></TableRow>diff --git a/saleor/static/dashboard-next/storybook/stories/components/MultiSelectField.tsx b/saleor/static/dashboard-next/storybook/stories/components/MultiSelectField.tsxindex ec7c89a8fb..349ce4041f 100644--- a/saleor/static/dashboard-next/storybook/stories/components/MultiSelectField.tsx+++ b/saleor/static/dashboard-next/storybook/stories/components/MultiSelectField.tsx@@ -12,33 +12,33 @@ const choices = [storiesOf("Generics / MultiSelectField", module).add("with no value", () => (- <MultiSelectField choices={choices} onChange={() => {}} />+ <MultiSelectField choices={choices} onChange={undefined} />)).add("with value", () => (<MultiSelectFieldchoices={choices}- onChange={() => {}}+ onChange={undefined}value={[choices[0].value]}/>)).add("with label", () => (<MultiSelectFieldchoices={choices}- onChange={() => {}}+ onChange={undefined}label="Lorem ipsum"/>)).add("with hint", () => (<MultiSelectFieldchoices={choices}- onChange={() => {}}+ onChange={undefined}hint="Lorem ipsum"/>)).add("with label and hint", () => (<MultiSelectFieldchoices={choices}- onChange={() => {}}+ onChange={undefined}label="Lorem"hint="Ipsum"/>@@ -46,7 +46,7 @@ storiesOf("Generics / MultiSelectField", module).add("with value, label and hint", () => (<MultiSelectFieldchoices={choices}- onChange={() => {}}+ onChange={undefined}value={[choices[0].value]}label="Lorem"hint="Ipsum"@@ -55,7 +55,7 @@ storiesOf("Generics / MultiSelectField", module).add("with error hint", () => (<MultiSelectFieldchoices={choices}- onChange={() => {}}+ onChange={undefined}hint="Lorem error"error={true}/>diff --git a/saleor/static/dashboard-next/storybook/stories/components/PageHeader.tsx b/saleor/static/dashboard-next/storybook/stories/components/PageHeader.tsxindex c1f4c7fe2b..b39a63b1d7 100644--- a/saleor/static/dashboard-next/storybook/stories/components/PageHeader.tsx+++ b/saleor/static/dashboard-next/storybook/stories/components/PageHeader.tsx@@ -9,7 +9,7 @@ storiesOf("Generics / PageHeader", module).add("without title", () => <PageHeader />).add("with title", () => <PageHeader title="Lorem ipsum" />).add("with title and back button", () => (- <PageHeader title="Lorem ipsum" onBack={() => {}} />+ <PageHeader title="Lorem ipsum" onBack={() => undefined} />)).add("with title icon bar", () => (<PageHeader title="Lorem ipsum">@@ -19,7 +19,7 @@ storiesOf("Generics / PageHeader", module)</PageHeader>)).add("with title, back button and icon bar", () => (- <PageHeader title="Lorem ipsum" onBack={() => {}}>+ <PageHeader title="Lorem ipsum" onBack={() => undefined}><IconButton><DeleteIcon /></IconButton>diff --git a/saleor/static/dashboard-next/storybook/stories/components/PhoneField.tsx b/saleor/static/dashboard-next/storybook/stories/components/PhoneField.tsxindex 4602b22d85..d4f35ad9da 100644--- a/saleor/static/dashboard-next/storybook/stories/components/PhoneField.tsx+++ b/saleor/static/dashboard-next/storybook/stories/components/PhoneField.tsx@@ -13,6 +13,6 @@ storiesOf("Generics / PhoneField", module)name="phone"prefix="41"number="123 987 456"- onChange={() => {}}+ onChange={undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/components/PointOfInterestField.tsx b/saleor/static/dashboard-next/storybook/stories/components/PointOfInterestField.tsxindex cf1b118d2d..c255d7903a 100644--- a/saleor/static/dashboard-next/storybook/stories/components/PointOfInterestField.tsx+++ b/saleor/static/dashboard-next/storybook/stories/components/PointOfInterestField.tsx@@ -7,7 +7,7 @@ import PointOfInterestField from "../../../components/PointOfInterestField";storiesOf("components / PointOfInterestField", module).add("default", () => (<PointOfInterestFieldsrc={placeholder}- onChange={() => {}}+ onChange={undefined}value={"0.5x0.5"}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/components/PriceField.tsx b/saleor/static/dashboard-next/storybook/stories/components/PriceField.tsxindex 1dca11dacf..24bec55beb 100644--- a/saleor/static/dashboard-next/storybook/stories/components/PriceField.tsx+++ b/saleor/static/dashboard-next/storybook/stories/components/PriceField.tsx@@ -13,7 +13,7 @@ storiesOf("Generics / PriceRangeField", module)<PriceRangeFieldcurrencySymbol="USD"name="priceField"- onChange={() => {}}+ onChange={undefined}value={value}/>))@@ -22,7 +22,7 @@ storiesOf("Generics / PriceRangeField", module)currencySymbol="USD"label="Lorem ipsum"name="priceField"- onChange={() => {}}+ onChange={undefined}value={value}/>))@@ -31,7 +31,7 @@ storiesOf("Generics / PriceRangeField", module)currencySymbol="USD"hint="Lorem ipsum"name="priceField"- onChange={() => {}}+ onChange={undefined}value={value}/>))@@ -40,7 +40,7 @@ storiesOf("Generics / PriceRangeField", module)currencySymbol="USD"disabledname="priceField"- onChange={() => {}}+ onChange={undefined}value={value}/>))@@ -50,7 +50,7 @@ storiesOf("Generics / PriceRangeField", module)hint="Ipsum"label="Lorem"name="priceField"- onChange={() => {}}+ onChange={undefined}value={value}/>))@@ -60,7 +60,7 @@ storiesOf("Generics / PriceRangeField", module)hint="Ipsum"label="Lorem"name="priceField"- onChange={() => {}}+ onChange={undefined}value={value}/>))@@ -71,31 +71,31 @@ storiesOf("Generics / PriceRangeField", module)hint="Ipsum"label="Lorem"name="priceField"- onChange={() => {}}+ onChange={undefined}value={value}/>));storiesOf("Generics / PriceField", module)- .add("with no value", () => <PriceField onChange={() => {}} />)- .add("with value", () => <PriceField value={"30"} onChange={() => {}} />)+ .add("with no value", () => <PriceField onChange={undefined} />)+ .add("with value", () => <PriceField value={"30"} onChange={undefined} />).add("with label", () => (- <PriceField label="Lorem ipsum" onChange={() => {}} />+ <PriceField label="Lorem ipsum" onChange={undefined} />))- .add("with hint", () => <PriceField hint="Lorem ipsum" onChange={() => {}} />)+ .add("with hint", () => <PriceField hint="Lorem ipsum" onChange={undefined} />).add("with currency symbol", () => (- <PriceField currencySymbol="$" onChange={() => {}} />+ <PriceField currencySymbol="$" onChange={undefined} />))- .add("disabled", () => <PriceField disabled onChange={() => {}} />)+ .add("disabled", () => <PriceField disabled onChange={undefined} />).add("with label and hint", () => (- <PriceField label="Lorem" hint="Ipsum" onChange={() => {}} />+ <PriceField label="Lorem" hint="Ipsum" onChange={undefined} />)).add("with value, label, currency symbol and hint", () => (<PriceFieldvalue={"30"}label="Lorem"hint="Ipsum"- onChange={() => {}}+ onChange={undefined}currencySymbol="$"/>))@@ -105,7 +105,7 @@ storiesOf("Generics / PriceField", module)label="Lorem"hint="Ipsum"error={true}- onChange={() => {}}+ onChange={undefined}currencySymbol="$"/>));diff --git a/saleor/static/dashboard-next/storybook/stories/components/SaveButtonBar.tsx b/saleor/static/dashboard-next/storybook/stories/components/SaveButtonBar.tsxindex 41ac394a46..fceed1e57f 100644--- a/saleor/static/dashboard-next/storybook/stories/components/SaveButtonBar.tsx+++ b/saleor/static/dashboard-next/storybook/stories/components/SaveButtonBar.tsx@@ -5,9 +5,9 @@ import SaveButtonBar from "../../../components/SaveButtonBar";import Decorator from "../../Decorator";const callbacks = {- onCancel: () => {},- onDelete: () => {},- onSave: () => {}+ onCancel: undefined,+ onDelete: undefined,+ onSave: undefined};interface InteractiveDemoProps {diff --git a/saleor/static/dashboard-next/storybook/stories/components/SingleSelectField.tsx b/saleor/static/dashboard-next/storybook/stories/components/SingleSelectField.tsxindex 745aa517ba..84edc09d95 100644--- a/saleor/static/dashboard-next/storybook/stories/components/SingleSelectField.tsx+++ b/saleor/static/dashboard-next/storybook/stories/components/SingleSelectField.tsx@@ -12,33 +12,33 @@ const choices = [storiesOf("Generics / SingleSelectField", module).add("with no value", () => (- <SingleSelectField choices={choices} onChange={() => {}} />+ <SingleSelectField choices={choices} onChange={undefined} />)).add("with value", () => (<SingleSelectFieldchoices={choices}- onChange={() => {}}+ onChange={undefined}value={choices[0].value}/>)).add("with label", () => (<SingleSelectFieldchoices={choices}- onChange={() => {}}+ onChange={undefined}label="Lorem ipsum"/>)).add("with hint", () => (<SingleSelectFieldchoices={choices}- onChange={() => {}}+ onChange={undefined}hint="Lorem ipsum"/>)).add("with label and hint", () => (<SingleSelectFieldchoices={choices}- onChange={() => {}}+ onChange={undefined}label="Lorem"hint="Ipsum"/>@@ -46,7 +46,7 @@ storiesOf("Generics / SingleSelectField", module).add("with value, label and hint", () => (<SingleSelectFieldchoices={choices}- onChange={() => {}}+ onChange={undefined}value={choices[0].value}label="Lorem"hint="Ipsum"@@ -55,7 +55,7 @@ storiesOf("Generics / SingleSelectField", module).add("with error hint", () => (<SingleSelectFieldchoices={choices}- onChange={() => {}}+ onChange={undefined}hint="Lorem error"error={true}/>diff --git a/saleor/static/dashboard-next/storybook/stories/components/TablePagination.tsx b/saleor/static/dashboard-next/storybook/stories/components/TablePagination.tsxindex a0c631b6ad..f3eb5b5534 100644--- a/saleor/static/dashboard-next/storybook/stories/components/TablePagination.tsx+++ b/saleor/static/dashboard-next/storybook/stories/components/TablePagination.tsx@@ -11,8 +11,8 @@ storiesOf("Generics / TablePagination", module)colSpan={1}hasNextPage={false}hasPreviousPage={false}- onPreviousPage={() => {}}- onNextPage={() => {}}+ onPreviousPage={undefined}+ onNextPage={undefined}/></Table>))@@ -22,8 +22,8 @@ storiesOf("Generics / TablePagination", module)colSpan={1}hasNextPage={false}hasPreviousPage={true}- onPreviousPage={() => {}}- onNextPage={() => {}}+ onPreviousPage={undefined}+ onNextPage={undefined}/></Table>))@@ -33,8 +33,8 @@ storiesOf("Generics / TablePagination", module)colSpan={1}hasNextPage={true}hasPreviousPage={false}- onPreviousPage={() => {}}- onNextPage={() => {}}+ onPreviousPage={undefined}+ onNextPage={undefined}/></Table>))@@ -44,8 +44,8 @@ storiesOf("Generics / TablePagination", module)colSpan={1}hasNextPage={true}hasPreviousPage={true}- onPreviousPage={() => {}}- onNextPage={() => {}}+ onPreviousPage={undefined}+ onNextPage={undefined}/></Table>));diff --git a/saleor/static/dashboard-next/storybook/stories/components/messages.tsx b/saleor/static/dashboard-next/storybook/stories/components/messages.tsxindex f5e752f69e..122dd8c1b0 100644--- a/saleor/static/dashboard-next/storybook/stories/components/messages.tsx+++ b/saleor/static/dashboard-next/storybook/stories/components/messages.tsx@@ -27,7 +27,7 @@ storiesOf("Generics / Global messages", module)color="primary"variant="raised"onClick={() =>- pushMessage({ text: "This is message", onUndo: () => {} })+ pushMessage({ text: "This is message", onUndo: undefined })}>Push messagediff --git a/saleor/static/dashboard-next/storybook/stories/customers/CustomerDetailsPage.tsx b/saleor/static/dashboard-next/storybook/stories/customers/CustomerDetailsPage.tsxindex c178964769..3b9ff4d0f7 100644--- a/saleor/static/dashboard-next/storybook/stories/customers/CustomerDetailsPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/customers/CustomerDetailsPage.tsx@@ -7,13 +7,13 @@ import { flatOrders } from "../../../orders/fixtures";import Decorator from "../../Decorator";const callbacks = {- onBack: () => {},- onBillingAddressEdit: () => {},- onCustomerDelete: () => {},- onCustomerEdit: () => {},- onEmailClick: () => {},- onOrderClick: (id: string) => () => {},- onShippingAddressEdit: () => {}+ onBack: undefined,+ onBillingAddressEdit: undefined,+ onCustomerDelete: undefined,+ onCustomerEdit: undefined,+ onEmailClick: undefined,+ onOrderClick: (id: string) => undefined,+ onShippingAddressEdit: undefined};storiesOf("Views / Customers / Customer details", module)diff --git a/saleor/static/dashboard-next/storybook/stories/customers/CustomerEditPage.tsx b/saleor/static/dashboard-next/storybook/stories/customers/CustomerEditPage.tsxindex 1f984d5121..3fdac6a13c 100644--- a/saleor/static/dashboard-next/storybook/stories/customers/CustomerEditPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/customers/CustomerEditPage.tsx@@ -10,8 +10,8 @@ const errors = [{ field: "note", message: "this field cannot be empty" }];const callbacks = {- onBack: () => {},- onSubmit: () => {}+ onBack: undefined,+ onSubmit: () => undefined};storiesOf("Views / Customers / Edit customer", module)diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderAddressEditDialog.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderAddressEditDialog.tsxindex bd32d663c7..9a3080de98 100644--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderAddressEditDialog.tsx+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderAddressEditDialog.tsx@@ -19,7 +19,7 @@ storiesOf("Orders / OrderAddressEditDialog", module)open={true}variant="shipping"data={transformAddressToForm(order.shippingAddress)}- onChange={() => {}}+ onChange={undefined}countries={countries}prefixes={prefixes}/>@@ -29,7 +29,7 @@ storiesOf("Orders / OrderAddressEditDialog", module)open={true}variant="billing"data={transformAddressToForm(order.billingAddress)}- onChange={() => {}}+ onChange={undefined}prefixes={prefixes}countries={countries}/>diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderCancelDialog.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderCancelDialog.tsxindex a400bb8b40..817c2b81d4 100644--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderCancelDialog.tsx+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderCancelDialog.tsx@@ -10,7 +10,7 @@ storiesOf("Orders / OrderCancelDialog", module)<OrderCancelDialogopen={true}id="123"- onConfirm={() => {}}- onClose={() => {}}+ onConfirm={undefined}+ onClose={undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderCustomer.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderCustomer.tsxindex 69932de5d8..6943e47a03 100644--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderCustomer.tsx+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderCustomer.tsx@@ -15,8 +15,8 @@ storiesOf("Orders / OrderCustomer", module)client={order("").client}shippingAddress={order("").shippingAddress}billingAddress={order("").billingAddress}- onBillingAddressEdit={() => {}}- onShippingAddressEdit={() => {}}+ onBillingAddressEdit={undefined}+ onShippingAddressEdit={undefined}/>)).add("with different addresses", () => (@@ -24,7 +24,7 @@ storiesOf("Orders / OrderCustomer", module)client={order("").client}shippingAddress={order("").shippingAddress}billingAddress={differentAddress}- onBillingAddressEdit={() => {}}- onShippingAddressEdit={() => {}}+ onBillingAddressEdit={undefined}+ onShippingAddressEdit={undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderCustomerEditDialog.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderCustomerEditDialog.tsxindex 9f82d314a3..c2b6e41089 100644--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderCustomerEditDialog.tsx+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderCustomerEditDialog.tsx@@ -11,10 +11,10 @@ storiesOf("Orders / OrderCustomerEditDialog", module).addDecorator(Decorator).add("default", () => (<OrderCustomerEditDialog- fetchUsers={() => {}}- onChange={() => {}}- onClose={() => {}}- onConfirm={() => {}}+ fetchUsers={undefined}+ onChange={undefined}+ onClose={undefined}+ onConfirm={undefined}open={true}user={{label: user.email,diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderDetailsPage.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderDetailsPage.tsxindex 725914c6a3..7f9acb30b3 100644--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderDetailsPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderDetailsPage.tsx@@ -23,21 +23,21 @@ const orderWithoutPayment = orderFixture(placeholderImage, {});const callbacks = {- onBack: () => {},- onCreate: () => {},- onCustomerEmailClick: id => () => {},- onOrderCancel: () => {},- onOrderLineChange: () => () => () => {},- onOrderLineRemove: () => () => {},- onPackingSlipClick: () => () => {},- onPaymentRelease: () => {},- onPrintClick: () => {},- onProductClick: () => {}+ onBack: () => undefined,+ onCreate: undefined,+ onCustomerEmailClick: id => undefined,+ onOrderCancel: undefined,+ onOrderLineChange: () => () => () => undefined,+ onOrderLineRemove: () => () => undefined,+ onPackingSlipClick: () => undefined,+ onPaymentRelease: undefined,+ onPrintClick: undefined,+ onProductClick: undefined};storiesOf("Views / Orders / Order details", module).addDecorator(Decorator)- .add("when loading data", () => <OrderDetailsPage onBack={() => {}} />)+ .add("when loading data", () => <OrderDetailsPage onBack={() => undefined} />).add("when loaded data", () => (<OrderDetailsPagecountries={countries}@@ -57,9 +57,9 @@ storiesOf("Views / Orders / Order details", module)users={clients}variants={variants}variantsLoading={false}- fetchShippingMethods={() => {}}- fetchUsers={() => {}}- fetchVariants={() => {}}+ fetchShippingMethods={undefined}+ fetchUsers={undefined}+ fetchVariants={undefined}{...callbacks}/>))@@ -73,9 +73,9 @@ storiesOf("Views / Orders / Order details", module)users={clients}variants={variants}variantsLoading={false}- fetchShippingMethods={() => {}}- fetchUsers={() => {}}- fetchVariants={() => {}}+ fetchShippingMethods={undefined}+ fetchUsers={undefined}+ fetchVariants={undefined}{...callbacks}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderFulfillmentCancelDialog.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderFulfillmentCancelDialog.tsxindex 89c626e3eb..cbb72a2443 100644--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderFulfillmentCancelDialog.tsx+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderFulfillmentCancelDialog.tsx@@ -10,7 +10,7 @@ storiesOf("Orders / OrderFulfillmentCancelDialog", module)<OrderFulfillmentCancelDialogopen={true}id="123"- onConfirm={() => {}}- onClose={() => {}}+ onConfirm={undefined}+ onClose={undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderFulfillmentDialog.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderFulfillmentDialog.tsxindex fa9f50439a..a4e1f10c62 100644--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderFulfillmentDialog.tsx+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderFulfillmentDialog.tsx@@ -14,7 +14,7 @@ storiesOf("Orders / OrderFulfillmentDialog", module)<OrderFulfillmentDialogopen={true}products={order.products}- onChange={() => {}}+ onChange={undefined}data={{}}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderFulfillmentTrackingDialog.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderFulfillmentTrackingDialog.tsxindex 5174f9541c..f1f26a9df3 100644--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderFulfillmentTrackingDialog.tsx+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderFulfillmentTrackingDialog.tsx@@ -10,9 +10,9 @@ storiesOf("Orders / OrderFulfillmentTrackingDialog", module)<OrderFulfillmentTrackingDialogopen={true}variant="add"- onChange={() => {}}- onConfirm={() => {}}- onClose={() => {}}+ onChange={undefined}+ onConfirm={undefined}+ onClose={undefined}trackingCode="123"/>))@@ -20,9 +20,9 @@ storiesOf("Orders / OrderFulfillmentTrackingDialog", module)<OrderFulfillmentTrackingDialogopen={true}variant="edit"- onChange={() => {}}- onConfirm={() => {}}- onClose={() => {}}+ onChange={undefined}+ onConfirm={undefined}+ onClose={undefined}trackingCode="123"/>));diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderPaymentDialog.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderPaymentDialog.tsxindex b6309fd2af..fe333cf2db 100644--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderPaymentDialog.tsx+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderPaymentDialog.tsx@@ -10,7 +10,7 @@ storiesOf("Orders / OrderPaymentDialog", module)<OrderPaymentDialogvariant="capture"open={true}- onChange={() => {}}+ onChange={undefined}value={120}/>))@@ -18,7 +18,7 @@ storiesOf("Orders / OrderPaymentDialog", module)<OrderPaymentDialogvariant="refund"open={true}- onChange={() => {}}+ onChange={undefined}value={140}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderPaymentReleaseDialog.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderPaymentReleaseDialog.tsxindex a41785dd1a..d731a50b37 100644--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderPaymentReleaseDialog.tsx+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderPaymentReleaseDialog.tsx@@ -9,7 +9,7 @@ storiesOf("Orders / OrderPaymentReleaseDialog", module).add("default", () => (<OrderPaymentReleaseDialogopen={true}- onConfirm={() => {}}- onClose={() => {}}+ onConfirm={undefined}+ onClose={undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderProductAddDialog.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderProductAddDialog.tsxindex a558f34109..b349061380 100644--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderProductAddDialog.tsx+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderProductAddDialog.tsx@@ -14,10 +14,10 @@ storiesOf("Orders / OrderProductAddDialog", module)<OrderProductAddDialogopen={true}onChange={change}- onConfirm={() => {}}- onClose={() => {}}+ onConfirm={undefined}+ onClose={undefined}variants={variants}- fetchVariants={() => {}}+ fetchVariants={undefined}quantity={data.quantity}variant={data.variant}/>diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderShippingMethodEditDialog.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderShippingMethodEditDialog.tsxindex 5db15d81c3..196b9705d3 100644--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderShippingMethodEditDialog.tsx+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderShippingMethodEditDialog.tsx@@ -14,10 +14,10 @@ storiesOf("Orders / OrderShippingMethodEditDialog", module).addDecorator(Decorator).add("default", () => (<OrderShippingMethodEditDialog- fetchShippingMethods={() => {}}- onChange={() => {}}- onClose={() => {}}- onConfirm={() => {}}+ fetchShippingMethods={undefined}+ onChange={undefined}+ onClose={undefined}+ onConfirm={undefined}open={true}shippingMethod={{label: order.shippingMethodName,diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderSummary.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderSummary.tsxindex 6c4fc88a1b..fb068ee36e 100644--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderSummary.tsx+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderSummary.tsx@@ -12,15 +12,15 @@ import Decorator from "../../Decorator";const order = orderFixture(placeholderImage);const callbacks = {- onCapture: () => {},- onCreate: () => {},- onFulfill: () => {},- onOrderCancel: () => {},- onOrderLineChange: () => () => () => {},- onOrderLineRemove: () => () => {},- onRefund: () => {},- onRelease: () => {},- onRowClick: () => () => {}+ onCapture: undefined,+ onCreate: undefined,+ onFulfill: undefined,+ onOrderCancel: undefined,+ onOrderLineChange: () => () => undefined,+ onOrderLineRemove: () => undefined,+ onRefund: undefined,+ onRelease: undefined,+ onRowClick: () => undefined};storiesOf("Orders / OrderSummary", module)diff --git a/saleor/static/dashboard-next/storybook/stories/pages/PageDeleteDialog.tsx b/saleor/static/dashboard-next/storybook/stories/pages/PageDeleteDialog.tsxindex cfc8e0fcb8..d6d5c6769a 100644--- a/saleor/static/dashboard-next/storybook/stories/pages/PageDeleteDialog.tsx+++ b/saleor/static/dashboard-next/storybook/stories/pages/PageDeleteDialog.tsx@@ -9,8 +9,8 @@ storiesOf("Pages / PageDeleteDialog", module).add("default", () => (<PageDeleteDialogopened={true}- onConfirm={() => {}}- onClose={() => {}}+ onConfirm={undefined}+ onClose={undefined}title="Lorem Ipsum"/>));diff --git a/saleor/static/dashboard-next/storybook/stories/pages/PageDetailsPage.tsx b/saleor/static/dashboard-next/storybook/stories/pages/PageDetailsPage.tsxindex 7fa561a6b3..6d66965726 100644--- a/saleor/static/dashboard-next/storybook/stories/pages/PageDetailsPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/pages/PageDetailsPage.tsx@@ -6,17 +6,14 @@ import { page } from "../../../pages/fixtures";import Decorator from "../../Decorator";const callbacks = {- onBack: () => {},- onSubmit: () => {}+ onBack: () => undefined,+ onSubmit: () => undefined};storiesOf("Views / Pages / Page details", module).addDecorator(Decorator).add("with initial data", () => (- <PageDetailsPage page={page} {...callbacks} />- ))- .add("with delete button", () => (- <PageDetailsPage page={page} {...callbacks} onDelete={() => {}} />+ <PageDetailsPage title="Lorem Ipsum" page={page} {...callbacks} />)).add("when loading", () => (<PageDetailsPage disabled={true} {...callbacks} />diff --git a/saleor/static/dashboard-next/storybook/stories/productTypes/ProductTypeDetailsPage.tsx b/saleor/static/dashboard-next/storybook/stories/productTypes/ProductTypeDetailsPage.tsxindex f2fc94e820..b8bc9f751c 100644--- a/saleor/static/dashboard-next/storybook/stories/productTypes/ProductTypeDetailsPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/productTypes/ProductTypeDetailsPage.tsx@@ -23,10 +23,10 @@ storiesOf("Views / Product types / Product type details", module)searchLoading={false}searchResults={attributes}taxRates={taxRates}- onAttributeSearch={() => {}}- onBack={() => {}}- onDelete={() => {}}- onSubmit={() => {}}+ onAttributeSearch={undefined}+ onBack={() => undefined}+ onDelete={undefined}+ onSubmit={() => undefined}/>)).add("loading", () => (@@ -36,9 +36,9 @@ storiesOf("Views / Product types / Product type details", module)searchLoading={false}searchResults={[]}taxRates={[]}- onAttributeSearch={() => {}}- onBack={() => {}}- onDelete={() => {}}- onSubmit={() => {}}+ onAttributeSearch={undefined}+ onBack={() => undefined}+ onDelete={undefined}+ onSubmit={() => undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsxindex ad5d115df2..e74f2e0a6c 100644--- a/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx@@ -19,9 +19,9 @@ storiesOf("Views / Products / Create product", module)collections={product.collections.edges.map(edge => edge.node)}productTypes={productTypes}categories={[product.category]}- onAttributesEdit={() => {}}- onBack={() => {}}- onSubmit={() => {}}+ onAttributesEdit={undefined}+ onBack={() => undefined}+ onSubmit={() => undefined}/>)).add("When loading", () => (@@ -33,8 +33,8 @@ storiesOf("Views / Products / Create product", module)collections={product.collections.edges.map(edge => edge.node)}productTypes={productTypes}categories={[product.category]}- onAttributesEdit={() => {}}- onBack={() => {}}- onSubmit={() => {}}+ onAttributesEdit={undefined}+ onBack={() => undefined}+ onSubmit={() => undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductImagePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductImagePage.tsxindex 513163788c..b43dfdf64f 100644--- a/saleor/static/dashboard-next/storybook/stories/products/ProductImagePage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductImagePage.tsx@@ -17,18 +17,18 @@ storiesOf("Views / Products / Product image details", module)disabled={false}image={image}images={images}- onBack={() => {}}- onDelete={() => {}}- onRowClick={() => () => {}}- onSubmit={() => {}}+ onBack={() => undefined}+ onDelete={undefined}+ onRowClick={() => undefined}+ onSubmit={() => undefined}/>)).add("when loading data", () => (<ProductImagePagedisabled={true}- onBack={() => {}}- onDelete={() => {}}- onRowClick={() => () => {}}- onSubmit={() => {}}+ onBack={() => undefined}+ onDelete={undefined}+ onRowClick={() => undefined}+ onSubmit={() => undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsxindex 2e3e6f17a4..628e676849 100644--- a/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx@@ -13,8 +13,8 @@ storiesOf("Views / Products / Product edit", module).add("when data is fully loaded", () => (<ProductUpdatePageerrors={[]}- onBack={() => {}}- onSubmit={() => {}}+ onBack={() => undefined}+ onSubmit={() => undefined}product={product}header={product.name}collections={product.collections.edges.map(edge => edge.node)}@@ -23,19 +23,19 @@ storiesOf("Views / Products / Product edit", module)images={product.images.edges.map(edge => edge.node)}variants={product.variants.edges.map(edge => edge.node)}productCollections={product.collections.edges.map(edge => edge.node)}- onAttributesEdit={() => {}}- onDelete={() => {}}- onProductShow={() => {}}- onVariantAdd={() => {}}- onVariantShow={() => () => {}}- onImageDelete={() => () => {}}+ onAttributesEdit={undefined}+ onDelete={undefined}+ onProductShow={undefined}+ onVariantAdd={undefined}+ onVariantShow={() => undefined}+ onImageDelete={() => undefined}/>)).add("when product has no images", () => (<ProductUpdatePageerrors={[]}- onBack={() => {}}- onSubmit={() => {}}+ onBack={() => undefined}+ onSubmit={() => undefined}product={product}header={product.name}collections={product.collections.edges.map(edge => edge.node)}@@ -44,19 +44,19 @@ storiesOf("Views / Products / Product edit", module)images={[]}variants={product.variants.edges.map(edge => edge.node)}productCollections={product.collections.edges.map(edge => edge.node)}- onAttributesEdit={() => {}}- onDelete={() => {}}- onProductShow={() => {}}- onImageDelete={() => () => {}}- onVariantAdd={() => {}}- onVariantShow={() => () => {}}+ onAttributesEdit={undefined}+ onDelete={undefined}+ onProductShow={undefined}+ onImageDelete={() => undefined}+ onVariantAdd={undefined}+ onVariantShow={() => undefined}/>)).add("when product has no variants", () => (<ProductUpdatePageerrors={[]}- onBack={() => {}}- onSubmit={() => {}}+ onBack={() => undefined}+ onSubmit={() => undefined}product={{...product,@@ -70,12 +70,12 @@ storiesOf("Views / Products / Product edit", module)images={product.images.edges.map(edge => edge.node)}variants={product.variants.edges.map(edge => edge.node)}productCollections={product.collections.edges.map(edge => edge.node)}- onAttributesEdit={() => {}}- onDelete={() => {}}- onProductShow={() => {}}- onVariantAdd={() => {}}- onImageDelete={() => () => {}}- onVariantShow={() => () => {}}+ onAttributesEdit={undefined}+ onDelete={undefined}+ onProductShow={undefined}+ onVariantAdd={undefined}+ onImageDelete={() => undefined}+ onVariantShow={() => undefined}/>)).add("when loading data", () => (@@ -83,12 +83,12 @@ storiesOf("Views / Products / Product edit", module)errors={[]}header={undefined}categories={[]}- onBack={() => {}}- onSubmit={() => {}}+ onBack={() => undefined}+ onSubmit={() => undefined}disabled={true}placeholderImage={placeholderImage}- onAttributesEdit={() => {}}- onImageDelete={() => () => {}}- onVariantShow={() => () => {}}+ onAttributesEdit={undefined}+ onImageDelete={() => undefined}+ onVariantShow={() => undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductVariantCreatePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductVariantCreatePage.tsxindex 2c6d34d38e..43889c73c5 100644--- a/saleor/static/dashboard-next/storybook/stories/products/ProductVariantCreatePage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductVariantCreatePage.tsx@@ -34,9 +34,9 @@ storiesOf("Views / Products / Create product variant", module)header="Add variant"loading={false}product={product}- onBack={() => {}}- onSubmit={() => {}}- onVariantClick={() => {}}+ onBack={() => undefined}+ onSubmit={() => undefined}+ onVariantClick={undefined}/>)).add("with errors", () => (@@ -45,9 +45,9 @@ storiesOf("Views / Products / Create product variant", module)header="Add variant"loading={false}product={product}- onBack={() => {}}- onSubmit={() => {}}- onVariantClick={() => {}}+ onBack={() => undefined}+ onSubmit={() => undefined}+ onVariantClick={undefined}/>)).add("when loading data", () => (@@ -55,8 +55,8 @@ storiesOf("Views / Products / Create product variant", module)errors={[]}header="Add variant"loading={true}- onBack={() => {}}- onSubmit={() => {}}- onVariantClick={() => {}}+ onBack={() => undefined}+ onSubmit={() => undefined}+ onVariantClick={undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductVariantPage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductVariantPage.tsxindex d129110a77..d93f9cbbc2 100644--- a/saleor/static/dashboard-next/storybook/stories/products/ProductVariantPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductVariantPage.tsx@@ -15,11 +15,11 @@ storiesOf("Views / Products / Product variant details", module)header={variant.name || variant.sku}errors={[]}variant={variant}- onBack={() => () => {}}- onDelete={() => {}}- onImageSelect={() => {}}- onSubmit={() => {}}- onVariantClick={() => () => {}}+ onBack={() => undefined}+ onDelete={undefined}+ onImageSelect={() => undefined}+ onSubmit={() => undefined}+ onVariantClick={() => undefined}/>)).add("when loading data", () => (@@ -27,11 +27,11 @@ storiesOf("Views / Products / Product variant details", module)header={undefined}errors={[]}loading={true}- onBack={() => () => {}}+ onBack={() => undefined}placeholderImage={placeholderImage}- onDelete={() => {}}- onImageSelect={() => {}}- onSubmit={() => {}}- onVariantClick={() => () => {}}+ onDelete={undefined}+ onImageSelect={() => undefined}+ onSubmit={() => undefined}+ onVariantClick={() => undefined}/>));diff --git a/saleor/static/dashboard-next/storybook/stories/vouchers/VoucherDetailsPage.tsx b/saleor/static/dashboard-next/storybook/stories/vouchers/VoucherDetailsPage.tsxindex baa70825d3..e3e1c63368 100644--- a/saleor/static/dashboard-next/storybook/stories/vouchers/VoucherDetailsPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/vouchers/VoucherDetailsPage.tsx@@ -12,13 +12,15 @@ storiesOf("Views / Vouchers / Voucher details", module).addDecorator(Decorator).add("default", () => (<VoucherDetailsPage- onBack={() => {}}+ onBack={() => undefined}currency="USD"voucher={vouchers[0]}- onVoucherDelete={() => {}}+ onVoucherDelete={undefined}shippingSearchResults={countries}categorySearchResults={categories}productSearchResults={products("")}/>))- .add("when loading", () => <VoucherDetailsPage disabled onBack={() => {}} />);+ .add("when loading", () => (+ <VoucherDetailsPage disabled onBack={() => undefined} />+ ));