Skip to content

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

Update stories

dominik-zeglen19df67e3ae4b
diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductImagePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductImagePage.tsx
index 29e608fb2b..37c51e1bd7 100644
--- a/saleor/static/dashboard-next/storybook/stories/products/ProductImagePage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductImagePage.tsx
@@ -5,6 +5,7 @@ import * as placeholder from "../../../../images/placeholder1080x1080.png";
import ProductImagePage from "../../../products/components/ProductImagePage";
import Decorator from "../../Decorator";
+const image = { id: "", url: placeholder };
const images = (Array(8) as any)
.fill({ id: "img", url: placeholder })
.map((image, imageIndex) => ({ ...image, id: image.id + imageIndex }));
@@ -13,18 +14,22 @@ storiesOf("Views / Products / Product image details", module)
.addDecorator(Decorator)
.add("when loaded data", () => (
<ProductImagePage
- onSubmit={() => {}}
- image={{ id: "img1", url: placeholder }}
+ description={"Lorem ipsum"}
+ disabled={false}
+ image={image}
images={images}
onBack={() => {}}
onDelete={() => {}}
+ onRowClick={() => () => {}}
+ onSubmit={() => {}}
/>
))
.add("when loading data", () => (
<ProductImagePage
- onDelete={() => {}}
disabled={true}
- onSubmit={() => {}}
onBack={() => {}}
+ onDelete={() => {}}
+ onRowClick={() => () => {}}
+ onSubmit={() => {}}
/>
));