Fix warnings (#919)
This commit is contained in:
parent
d5ae972b0e
commit
912dc5d1f4
4 changed files with 24 additions and 24 deletions
|
@ -27,11 +27,11 @@ const useStyles = makeStyles(
|
||||||
padding: 0
|
padding: 0
|
||||||
},
|
},
|
||||||
colAction: {
|
colAction: {
|
||||||
padding: "0 0.5rem",
|
|
||||||
width: "auto",
|
|
||||||
button: {
|
button: {
|
||||||
padding: "0"
|
padding: "0"
|
||||||
}
|
},
|
||||||
|
padding: "0 0.5rem",
|
||||||
|
width: "auto"
|
||||||
},
|
},
|
||||||
colNumber: { width: "100%" },
|
colNumber: { width: "100%" },
|
||||||
colNumberClickable: {
|
colNumberClickable: {
|
||||||
|
|
|
@ -93,10 +93,10 @@ const ShippingZoneDetailsPage: React.FC<ShippingZoneDetailsPageProps> = ({
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
|
|
||||||
const initialForm: FormData = {
|
const initialForm: FormData = {
|
||||||
name: shippingZone?.name || "",
|
|
||||||
warehouses: shippingZone?.warehouses?.map(warehouse => warehouse.id) || [],
|
|
||||||
metadata: shippingZone?.metadata.map(mapMetadataItemToInput),
|
metadata: shippingZone?.metadata.map(mapMetadataItemToInput),
|
||||||
privateMetadata: shippingZone?.privateMetadata.map(mapMetadataItemToInput)
|
name: shippingZone?.name || "",
|
||||||
|
privateMetadata: shippingZone?.privateMetadata.map(mapMetadataItemToInput),
|
||||||
|
warehouses: shippingZone?.warehouses?.map(warehouse => warehouse.id) || []
|
||||||
};
|
};
|
||||||
const [warehouseDisplayValues, setWarehouseDisplayValues] = useStateFromProps<
|
const [warehouseDisplayValues, setWarehouseDisplayValues] = useStateFromProps<
|
||||||
MultiAutocompleteChoiceType[]
|
MultiAutocompleteChoiceType[]
|
||||||
|
|
|
@ -90,12 +90,12 @@ export const ShippingZoneRatesPage: React.FC<ShippingZoneRatesPageProps> = ({
|
||||||
channelListings: shippingChannels,
|
channelListings: shippingChannels,
|
||||||
includeZipCodes: ZipCodeInclusion.Exclude,
|
includeZipCodes: ZipCodeInclusion.Exclude,
|
||||||
maxValue: rate?.maximumOrderWeight?.value.toString() || "",
|
maxValue: rate?.maximumOrderWeight?.value.toString() || "",
|
||||||
|
metadata: rate?.metadata.map(mapMetadataItemToInput),
|
||||||
minValue: rate?.minimumOrderWeight?.value.toString() || "",
|
minValue: rate?.minimumOrderWeight?.value.toString() || "",
|
||||||
name: rate?.name || "",
|
name: rate?.name || "",
|
||||||
noLimits: false,
|
noLimits: false,
|
||||||
type: rate?.type || null,
|
privateMetadata: rate?.privateMetadata.map(mapMetadataItemToInput),
|
||||||
metadata: rate?.metadata.map(mapMetadataItemToInput),
|
type: rate?.type || null
|
||||||
privateMetadata: rate?.privateMetadata.map(mapMetadataItemToInput)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|
|
@ -265,8 +265,8 @@ export const shippingZones: ShippingZoneFragment[] = [
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
id: "U2hpcHBpbmdab25lOjE=",
|
id: "U2hpcHBpbmdab25lOjE=",
|
||||||
name: "Europe",
|
|
||||||
metadata: [],
|
metadata: [],
|
||||||
|
name: "Europe",
|
||||||
privateMetadata: []
|
privateMetadata: []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -419,8 +419,8 @@ export const shippingZones: ShippingZoneFragment[] = [
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
id: "U2hpcHBpbmdab25lOjI=",
|
id: "U2hpcHBpbmdab25lOjI=",
|
||||||
name: "Oceania",
|
|
||||||
metadata: [],
|
metadata: [],
|
||||||
|
name: "Oceania",
|
||||||
privateMetadata: []
|
privateMetadata: []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -684,8 +684,8 @@ export const shippingZones: ShippingZoneFragment[] = [
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
id: "U2hpcHBpbmdab25lOjM=",
|
id: "U2hpcHBpbmdab25lOjM=",
|
||||||
name: "Asia",
|
|
||||||
metadata: [],
|
metadata: [],
|
||||||
|
name: "Asia",
|
||||||
privateMetadata: []
|
privateMetadata: []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -979,8 +979,8 @@ export const shippingZones: ShippingZoneFragment[] = [
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
id: "U2hpcHBpbmdab25lOjQ=",
|
id: "U2hpcHBpbmdab25lOjQ=",
|
||||||
name: "Americas",
|
|
||||||
metadata: [],
|
metadata: [],
|
||||||
|
name: "Americas",
|
||||||
privateMetadata: []
|
privateMetadata: []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1290,16 +1290,14 @@ export const shippingZones: ShippingZoneFragment[] = [
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
id: "U2hpcHBpbmdab25lOjU=",
|
id: "U2hpcHBpbmdab25lOjU=",
|
||||||
name: "Africa",
|
|
||||||
metadata: [],
|
metadata: [],
|
||||||
|
name: "Africa",
|
||||||
privateMetadata: []
|
privateMetadata: []
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
export const shippingZone: ShippingZone_shippingZone = {
|
export const shippingZone: ShippingZone_shippingZone = {
|
||||||
__typename: "ShippingZone",
|
__typename: "ShippingZone",
|
||||||
metadata: [],
|
|
||||||
privateMetadata: [],
|
|
||||||
countries: [
|
countries: [
|
||||||
{
|
{
|
||||||
__typename: "CountryDisplay",
|
__typename: "CountryDisplay",
|
||||||
|
@ -1559,12 +1557,12 @@ export const shippingZone: ShippingZone_shippingZone = {
|
||||||
],
|
],
|
||||||
default: false,
|
default: false,
|
||||||
id: "U2hpcHBpbmdab25lOjE=",
|
id: "U2hpcHBpbmdab25lOjE=",
|
||||||
|
metadata: [],
|
||||||
name: "Europe",
|
name: "Europe",
|
||||||
|
privateMetadata: [],
|
||||||
shippingMethods: [
|
shippingMethods: [
|
||||||
{
|
{
|
||||||
__typename: "ShippingMethod",
|
__typename: "ShippingMethod",
|
||||||
metadata: [],
|
|
||||||
privateMetadata: [],
|
|
||||||
channelListings: [
|
channelListings: [
|
||||||
{
|
{
|
||||||
__typename: "ShippingMethodChannelListing",
|
__typename: "ShippingMethodChannelListing",
|
||||||
|
@ -1622,12 +1620,14 @@ export const shippingZone: ShippingZone_shippingZone = {
|
||||||
unit: WeightUnitsEnum.KG,
|
unit: WeightUnitsEnum.KG,
|
||||||
value: 80
|
value: 80
|
||||||
},
|
},
|
||||||
|
metadata: [],
|
||||||
minimumOrderWeight: {
|
minimumOrderWeight: {
|
||||||
__typename: "Weight",
|
__typename: "Weight",
|
||||||
unit: WeightUnitsEnum.KG,
|
unit: WeightUnitsEnum.KG,
|
||||||
value: 0
|
value: 0
|
||||||
},
|
},
|
||||||
name: "DB Schenker",
|
name: "DB Schenker",
|
||||||
|
privateMetadata: [],
|
||||||
type: ShippingMethodTypeEnum.WEIGHT,
|
type: ShippingMethodTypeEnum.WEIGHT,
|
||||||
zipCodeRules: [
|
zipCodeRules: [
|
||||||
{
|
{
|
||||||
|
@ -1652,8 +1652,6 @@ export const shippingZone: ShippingZone_shippingZone = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__typename: "ShippingMethod",
|
__typename: "ShippingMethod",
|
||||||
metadata: [],
|
|
||||||
privateMetadata: [],
|
|
||||||
channelListings: [],
|
channelListings: [],
|
||||||
excludedProducts: {
|
excludedProducts: {
|
||||||
__typename: "ProductCountableConnection",
|
__typename: "ProductCountableConnection",
|
||||||
|
@ -1681,12 +1679,14 @@ export const shippingZone: ShippingZone_shippingZone = {
|
||||||
},
|
},
|
||||||
id: "U2hpcHBpbmdNZXRob2Q6Mw==",
|
id: "U2hpcHBpbmdNZXRob2Q6Mw==",
|
||||||
maximumOrderWeight: null,
|
maximumOrderWeight: null,
|
||||||
|
metadata: [],
|
||||||
minimumOrderWeight: {
|
minimumOrderWeight: {
|
||||||
__typename: "Weight",
|
__typename: "Weight",
|
||||||
unit: WeightUnitsEnum.KG,
|
unit: WeightUnitsEnum.KG,
|
||||||
value: 0
|
value: 0
|
||||||
},
|
},
|
||||||
name: "Registred priority",
|
name: "Registred priority",
|
||||||
|
privateMetadata: [],
|
||||||
type: ShippingMethodTypeEnum.WEIGHT,
|
type: ShippingMethodTypeEnum.WEIGHT,
|
||||||
zipCodeRules: [
|
zipCodeRules: [
|
||||||
{
|
{
|
||||||
|
@ -1711,8 +1711,6 @@ export const shippingZone: ShippingZone_shippingZone = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__typename: "ShippingMethod",
|
__typename: "ShippingMethod",
|
||||||
metadata: [],
|
|
||||||
privateMetadata: [],
|
|
||||||
channelListings: [],
|
channelListings: [],
|
||||||
excludedProducts: {
|
excludedProducts: {
|
||||||
__typename: "ProductCountableConnection",
|
__typename: "ProductCountableConnection",
|
||||||
|
@ -1740,12 +1738,14 @@ export const shippingZone: ShippingZone_shippingZone = {
|
||||||
},
|
},
|
||||||
id: "U2hpcHBpbmdNZXRob2Q6Mg==",
|
id: "U2hpcHBpbmdNZXRob2Q6Mg==",
|
||||||
maximumOrderWeight: null,
|
maximumOrderWeight: null,
|
||||||
|
metadata: [],
|
||||||
minimumOrderWeight: {
|
minimumOrderWeight: {
|
||||||
__typename: "Weight",
|
__typename: "Weight",
|
||||||
unit: WeightUnitsEnum.KG,
|
unit: WeightUnitsEnum.KG,
|
||||||
value: 0
|
value: 0
|
||||||
},
|
},
|
||||||
name: "UPS",
|
name: "UPS",
|
||||||
|
privateMetadata: [],
|
||||||
type: ShippingMethodTypeEnum.PRICE,
|
type: ShippingMethodTypeEnum.PRICE,
|
||||||
zipCodeRules: [
|
zipCodeRules: [
|
||||||
{
|
{
|
||||||
|
@ -1784,15 +1784,15 @@ export const shippingZone: ShippingZone_shippingZone = {
|
||||||
},
|
},
|
||||||
id: "U2hpcHBpbmdNZXRob2Q6MQ==",
|
id: "U2hpcHBpbmdNZXRob2Q6MQ==",
|
||||||
maximumOrderWeight: null,
|
maximumOrderWeight: null,
|
||||||
|
metadata: [],
|
||||||
minimumOrderWeight: {
|
minimumOrderWeight: {
|
||||||
__typename: "Weight",
|
__typename: "Weight",
|
||||||
unit: WeightUnitsEnum.KG,
|
unit: WeightUnitsEnum.KG,
|
||||||
value: 0
|
value: 0
|
||||||
},
|
},
|
||||||
name: "DHL",
|
name: "DHL",
|
||||||
type: ShippingMethodTypeEnum.PRICE,
|
|
||||||
metadata: [],
|
|
||||||
privateMetadata: [],
|
privateMetadata: [],
|
||||||
|
type: ShippingMethodTypeEnum.PRICE,
|
||||||
zipCodeRules: [
|
zipCodeRules: [
|
||||||
{
|
{
|
||||||
__typename: "ShippingMethodZipCodeRule",
|
__typename: "ShippingMethodZipCodeRule",
|
||||||
|
|
Loading…
Reference in a new issue