Skip to content

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

Move taxes select to wider column

Krzysztof Bialoglowicz6f7d6c751e0e
diff --git a/saleor/static/dashboard-next/productTypes/components/ProductTypeCreatePage/ProductTypeCreatePage.tsx b/saleor/static/dashboard-next/productTypes/components/ProductTypeCreatePage/ProductTypeCreatePage.tsx
index 95a3fe90d2..43c7172ccc 100644
--- a/saleor/static/dashboard-next/productTypes/components/ProductTypeCreatePage/ProductTypeCreatePage.tsx
+++ b/saleor/static/dashboard-next/productTypes/components/ProductTypeCreatePage/ProductTypeCreatePage.tsx
@@ -82,19 +82,19 @@ const ProductTypeCreatePage: React.StatelessComponent<
disabled={disabled}
onChange={change}
/>
- </div>
- <div>
- <ProductTypeShipping
+ <CardSpacer />
+ <ProductTypeTaxes
disabled={disabled}
data={data}
- defaultWeightUnit={defaultWeightUnit}
+ taxTypes={taxTypes}
onChange={change}
/>
- <CardSpacer />
- <ProductTypeTaxes
+ </div>
+ <div>
+ <ProductTypeShipping
disabled={disabled}
data={data}
- taxTypes={taxTypes}
+ defaultWeightUnit={defaultWeightUnit}
onChange={change}
/>
</div>
diff --git a/saleor/static/dashboard-next/productTypes/components/ProductTypeDetailsPage/ProductTypeDetailsPage.tsx b/saleor/static/dashboard-next/productTypes/components/ProductTypeDetailsPage/ProductTypeDetailsPage.tsx
index 53d1764153..6cdd24f904 100644
--- a/saleor/static/dashboard-next/productTypes/components/ProductTypeDetailsPage/ProductTypeDetailsPage.tsx
+++ b/saleor/static/dashboard-next/productTypes/components/ProductTypeDetailsPage/ProductTypeDetailsPage.tsx
@@ -131,6 +131,15 @@ const ProductTypeDetailsPage: React.StatelessComponent<
onChange={change}
/>
<CardSpacer />
+ <ProductTypeTaxes
+ disabled={disabled}
+ data={data}
+ taxTypes={maybe(() => taxTypes, [
+ { description: "", taxCode: "" }
+ ])}
+ onChange={change}
+ />
+ <CardSpacer />
<ProductTypeAttributes
attributes={maybe(() => productType.productAttributes)}
type={AttributeTypeEnum.PRODUCT}
@@ -166,15 +175,6 @@ const ProductTypeDetailsPage: React.StatelessComponent<
defaultWeightUnit={defaultWeightUnit}
onChange={change}
/>
- <CardSpacer />
- <ProductTypeTaxes
- disabled={disabled}
- data={data}
- taxTypes={maybe(() => taxTypes, [
- { description: "", taxCode: "" }
- ])}
- onChange={change}
- />
</div>
</Grid>
<SaveButtonBar