Skip to content

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

Update stories

dominik-zeglene506e344de50
diff --git a/saleor/static/dashboard-next/orders/fixtures.ts b/saleor/static/dashboard-next/orders/fixtures.ts
index 2afadf52b8..eef1828dd7 100644
--- a/saleor/static/dashboard-next/orders/fixtures.ts
+++ b/saleor/static/dashboard-next/orders/fixtures.ts
@@ -119,10 +119,7 @@ export const order = (placeholder, args?) => ({
firstName: "Test",
id: "a1",
lastName: "Client",
- phone: {
- number: "",
- prefix: ""
- },
+ phone: "",
postalCode: "95393-6818",
streetAddress_1: "9297 Barker Extension",
streetAddress_2: ""
@@ -289,10 +286,7 @@ export const order = (placeholder, args?) => ({
firstName: "Test",
id: "a1",
lastName: "Client",
- phone: {
- number: "",
- prefix: ""
- },
+ phone: "",
postalCode: "95393-6818",
streetAddress_1: "9297 Barker Extension",
streetAddress_2: ""
diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderAddressEditDialog.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderAddressEditDialog.tsx
index fbcc039aea..fc64c123aa 100644
--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderAddressEditDialog.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderAddressEditDialog.tsx
@@ -12,6 +12,7 @@ storiesOf("Orders / OrderAddressEditDialog", module)
.addDecorator(Decorator)
.add("shipping address", () => (
<OrderAddressEditDialog
+ errors={{}}
open={true}
variant="shipping"
data={transformAddressToForm(order.shippingAddress)}
@@ -21,6 +22,7 @@ storiesOf("Orders / OrderAddressEditDialog", module)
))
.add("billing address", () => (
<OrderAddressEditDialog
+ errors={{}}
open={true}
variant="billing"
data={transformAddressToForm(order.billingAddress)}
diff --git a/saleor/static/dashboard-next/storybook/stories/orders/OrderDetailsPage.tsx b/saleor/static/dashboard-next/storybook/stories/orders/OrderDetailsPage.tsx
index 045a49ee60..b457d806b4 100644
--- a/saleor/static/dashboard-next/storybook/stories/orders/OrderDetailsPage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/orders/OrderDetailsPage.tsx
@@ -24,6 +24,7 @@ const orderWithoutPayment = orderFixture(placeholderImage, {
const callbacks = {
onBack: () => undefined,
+ onBillingAddressEdit: undefined,
onCreate: undefined,
onNoteAdd: undefined,
onOrderCancel: undefined,
@@ -36,14 +37,18 @@ const callbacks = {
onPaymentRelease: undefined,
onPrintClick: undefined,
onProductAdd: undefined,
- onProductClick: undefined
+ onProductClick: undefined,
+ onShippingAddressEdit: undefined
};
storiesOf("Views / Orders / Order details", module)
.addDecorator(Decorator)
- .add("when loading data", () => <OrderDetailsPage {...callbacks} />)
+ .add("when loading data", () => (
+ <OrderDetailsPage errors={[]} {...callbacks} />
+ ))
.add("when loaded data", () => (
<OrderDetailsPage
+ errors={[]}
countries={countries}
order={order}
user={{ email: "[email protected]" }}
@@ -52,6 +57,7 @@ storiesOf("Views / Orders / Order details", module)
))
.add("as a draft", () => (
<OrderDetailsPage
+ errors={[]}
countries={countries}
order={orderDraft}
shippingMethods={shippingMethods}
@@ -67,6 +73,7 @@ storiesOf("Views / Orders / Order details", module)
))
.add("as a unpaid order", () => (
<OrderDetailsPage
+ errors={[]}
countries={countries}
order={orderWithoutPayment}
shippingMethods={shippingMethods}