Skip to content

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

Add missing prop

dominik-zeglen4c37c008ffb7
diff --git a/saleor/static/dashboard-next/storybook/stories/pages/PageListPage.tsx b/saleor/static/dashboard-next/storybook/stories/pages/PageListPage.tsx
index 814240f2c5..b6dc87147a 100644
--- a/saleor/static/dashboard-next/storybook/stories/pages/PageListPage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/pages/PageListPage.tsx
@@ -10,6 +10,7 @@ import Decorator from "../../Decorator";
const props: PageListPageProps = {
...pageListProps.default,
+ onBack: () => undefined,
pages: pageList
};
diff --git a/saleor/static/dashboard-next/storybook/stories/productTypes/ProductTypeListPage.tsx b/saleor/static/dashboard-next/storybook/stories/productTypes/ProductTypeListPage.tsx
index 3a4d42db0b..63f5c1e7e5 100644
--- a/saleor/static/dashboard-next/storybook/stories/productTypes/ProductTypeListPage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/productTypes/ProductTypeListPage.tsx
@@ -10,10 +10,15 @@ storiesOf("Views / Product types / Product types list", module)
.addDecorator(Decorator)
.add("default", () => (
<ProductTypeListPage
+ onBack={() => undefined}
productTypes={productTypes}
{...pageListProps.default}
/>
))
.add("loading", () => (
- <ProductTypeListPage productTypes={undefined} {...pageListProps.loading} />
+ <ProductTypeListPage
+ onBack={() => undefined}
+ productTypes={undefined}
+ {...pageListProps.loading}
+ />
));
diff --git a/saleor/static/dashboard-next/storybook/stories/shipping/ShippingZonesListPage.tsx b/saleor/static/dashboard-next/storybook/stories/shipping/ShippingZonesListPage.tsx
index 15be89a13e..29e000d8a7 100644
--- a/saleor/static/dashboard-next/storybook/stories/shipping/ShippingZonesListPage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/shipping/ShippingZonesListPage.tsx
@@ -13,6 +13,7 @@ const props: ShippingZonesListPageProps = {
...pageListProps.default,
defaultWeightUnit: WeightUnitsEnum.KG,
onAdd: () => undefined,
+ onBack: () => undefined,
onRemove: () => undefined,
onSubmit: () => undefined,
shippingZones
diff --git a/saleor/static/dashboard-next/storybook/stories/staff/StaffListPage.tsx b/saleor/static/dashboard-next/storybook/stories/staff/StaffListPage.tsx
index 7bc5636c9b..d6c9aa1190 100644
--- a/saleor/static/dashboard-next/storybook/stories/staff/StaffListPage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/staff/StaffListPage.tsx
@@ -10,6 +10,7 @@ import Decorator from "../../Decorator";
const props: StaffListPageProps = {
onAdd: undefined,
+ onBack: () => undefined,
staffMembers,
...pageListProps.default
};
diff --git a/saleor/static/dashboard-next/storybook/stories/taxes/CountryListPage.tsx b/saleor/static/dashboard-next/storybook/stories/taxes/CountryListPage.tsx
index ad9c95729c..1124ed553b 100644
--- a/saleor/static/dashboard-next/storybook/stories/taxes/CountryListPage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/taxes/CountryListPage.tsx
@@ -10,6 +10,7 @@ import { countries } from "./fixtures";
const props: CountryListPageProps = {
...pageListProps.default,
+ onBack: () => undefined,
onSubmit: () => undefined,
onTaxFetch: () => undefined,
shop: {