Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update types
dominik-zeglena7bae8b0887e
diff --git a/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsx b/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsxindex b329580a0f..8436857e2e 100644--- a/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsx@@ -14,7 +14,10 @@ interface AddressType {city: string;cityArea: string;companyName: string;- country: string;+ country: {+ code: string;+ country: string;+ };countryArea: string;firstName: string;id: string;@@ -45,7 +48,7 @@ const decorate = withStyles(display: "block",height: 1,width: "100%"- },+ }}),{ name: "OrderCustomer" });@@ -129,8 +132,10 @@ const OrderCustomer = decorate<OrderCustomerProps>(</Typography><Typography>{shippingAddress.countryArea- ? shippingAddress.countryArea + ", " + shippingAddress.country- : shippingAddress.country}+ ? shippingAddress.countryArea ++ ", " ++ shippingAddress.country.country+ : shippingAddress.country.country}</Typography></>)}@@ -176,8 +181,10 @@ const OrderCustomer = decorate<OrderCustomerProps>(</Typography><Typography>{billingAddress.countryArea- ? billingAddress.countryArea + ", " + billingAddress.country- : billingAddress.country}+ ? billingAddress.countryArea ++ ", " ++ billingAddress.country.country+ : billingAddress.country.country}</Typography></>)}diff --git a/saleor/static/dashboard-next/orders/index.tsx b/saleor/static/dashboard-next/orders/index.tsxindex ffe9eea1d2..ee2d6ff234 100644--- a/saleor/static/dashboard-next/orders/index.tsx+++ b/saleor/static/dashboard-next/orders/index.tsx@@ -40,7 +40,10 @@ export interface AddressType {city: string;cityArea: string;companyName: string;+ country: {+ code: string;country: string;+ };countryArea: string;firstName: string;id: string;@@ -113,7 +116,7 @@ export const transformAddressToForm = (data: AddressType) => ({city: maybe(() => data.city, ""),cityArea: maybe(() => data.cityArea, ""),companyName: maybe(() => data.companyName, ""),- country: maybe(() => data.country, ""),+ country: maybe(() => data.country.code, ""),countryArea: maybe(() => data.countryArea, ""),firstName: maybe(() => data.firstName, ""),lastName: maybe(() => data.lastName, ""),diff --git a/saleor/static/dashboard-next/orders/views/OrderDetails.tsx b/saleor/static/dashboard-next/orders/views/OrderDetails.tsxindex 5370c00f76..a7df7790d8 100644--- a/saleor/static/dashboard-next/orders/views/OrderDetails.tsx+++ b/saleor/static/dashboard-next/orders/views/OrderDetails.tsx@@ -18,10 +18,10 @@ import { OrderCreateFulfillment } from "../types/OrderCreateFulfillment";import { OrderDraftUpdate } from "../types/OrderDraftUpdate";import { OrderLineAdd } from "../types/OrderLineAdd";import { OrderLineDelete } from "../types/OrderLineDelete";+import { OrderLineUpdate } from "../types/OrderLineUpdate";import { OrderRefund } from "../types/OrderRefund";import { OrderShippingMethodUpdate } from "../types/OrderShippingMethodUpdate";import { OrderUpdate } from "../types/OrderUpdate";-import { OrderLineUpdate } from "../types/OrderLineUpdate";interface OrderDetailsProps {id: string;