Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix stories

dominik-zeglena9b5724d7e4c
diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductImagePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductImagePage.tsx
index 42f1e85a1b..217277dc1c 100644
--- a/saleor/static/dashboard-next/storybook/stories/products/ProductImagePage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductImagePage.tsx
@@ -10,10 +10,16 @@ storiesOf("Views / Products / Product image details", module)
.add("when loaded data", () => (
<ProductImagePage
onSubmit={() => {}}
- onBack={() => {}}
image={placeholder}
+ onBack={() => {}}
+ onDelete={() => {}}
/>
))
.add("when loading data", () => (
- <ProductImagePage disabled={true} onSubmit={() => {}} onBack={() => {}} />
+ <ProductImagePage
+ onDelete={() => {}}
+ disabled={true}
+ onSubmit={() => {}}
+ onBack={() => {}}
+ />
));
diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx
index 86f6b0c78d..2e3e6f17a4 100644
--- a/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductUpdatePage.tsx
@@ -28,6 +28,7 @@ storiesOf("Views / Products / Product edit", module)
onProductShow={() => {}}
onVariantAdd={() => {}}
onVariantShow={() => () => {}}
+ onImageDelete={() => () => {}}
/>
))
.add("when product has no images", () => (
@@ -46,6 +47,7 @@ storiesOf("Views / Products / Product edit", module)
onAttributesEdit={() => {}}
onDelete={() => {}}
onProductShow={() => {}}
+ onImageDelete={() => () => {}}
onVariantAdd={() => {}}
onVariantShow={() => () => {}}
/>
@@ -72,6 +74,7 @@ storiesOf("Views / Products / Product edit", module)
onDelete={() => {}}
onProductShow={() => {}}
onVariantAdd={() => {}}
+ onImageDelete={() => () => {}}
onVariantShow={() => () => {}}
/>
))
@@ -85,6 +88,7 @@ storiesOf("Views / Products / Product edit", module)
disabled={true}
placeholderImage={placeholderImage}
onAttributesEdit={() => {}}
+ onImageDelete={() => () => {}}
onVariantShow={() => () => {}}
/>
));