diff --git a/src/productTypes/components/ProductTypeCreatePage/ProductTypeCreatePage.tsx b/src/productTypes/components/ProductTypeCreatePage/ProductTypeCreatePage.tsx index 6616baebd..3a11f5705 100644 --- a/src/productTypes/components/ProductTypeCreatePage/ProductTypeCreatePage.tsx +++ b/src/productTypes/components/ProductTypeCreatePage/ProductTypeCreatePage.tsx @@ -105,7 +105,7 @@ const ProductTypeCreatePage: React.FC = ({ diff --git a/src/productTypes/components/ProductTypeDetailsPage/ProductTypeDetailsPage.tsx b/src/productTypes/components/ProductTypeDetailsPage/ProductTypeDetailsPage.tsx index d46382479..1737361f9 100644 --- a/src/productTypes/components/ProductTypeDetailsPage/ProductTypeDetailsPage.tsx +++ b/src/productTypes/components/ProductTypeDetailsPage/ProductTypeDetailsPage.tsx @@ -199,7 +199,7 @@ const ProductTypeDetailsPage: React.FC = ({ diff --git a/src/productTypes/components/ProductTypeShipping/ProductTypeShipping.tsx b/src/productTypes/components/ProductTypeShipping/ProductTypeShipping.tsx index afb146aca..cb8ca105f 100644 --- a/src/productTypes/components/ProductTypeShipping/ProductTypeShipping.tsx +++ b/src/productTypes/components/ProductTypeShipping/ProductTypeShipping.tsx @@ -6,21 +6,20 @@ import { useIntl } from "react-intl"; import CardTitle from "@saleor/components/CardTitle"; import { ControlledCheckbox } from "@saleor/components/ControlledCheckbox"; -import { WeightUnitsEnum } from "../../../types/globalTypes"; interface ProductTypeShippingProps { data: { isShippingRequired: boolean; weight: number | null; }; - defaultWeightUnit: WeightUnitsEnum; + weightUnit: string; disabled: boolean; onChange: (event: React.ChangeEvent) => void; } const ProductTypeShipping: React.FC = ({ data, - defaultWeightUnit, + weightUnit, disabled, onChange }) => { @@ -48,7 +47,7 @@ const ProductTypeShipping: React.FC = ({ {data.isShippingRequired && (