Skip to content

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

Fix story

dominik-zeglen6d852b68a129
diff --git a/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx b/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx
index 2ee0144e9f..eeb2b5d440 100644
--- a/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/products/ProductCreatePage.tsx
@@ -12,6 +12,20 @@ storiesOf("Views / Products / Create product", module)
.addDecorator(Decorator)
.add("default", () => (
<ProductCreatePage
+ disabled={false}
+ errors={[]}
+ header="Add product"
+ collections={product.collections.edges.map(edge => edge.node)}
+ productTypes={productTypes}
+ categories={[product.category]}
+ onAttributesEdit={() => {}}
+ onBack={() => {}}
+ onSubmit={() => {}}
+ />
+ ))
+ .add("When loading", () => (
+ <ProductCreatePage
+ disabled={true}
errors={[]}
header="Add product"
collections={product.collections.edges.map(edge => edge.node)}