Fix build warnings
This commit is contained in:
parent
9b9a6648cd
commit
0148bc4527
4 changed files with 9 additions and 8 deletions
|
@ -85,7 +85,7 @@ const ProductVariantCreatePrices: React.FC<
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Typography color="textSecondary" variant="headline">
|
<Typography color="textSecondary" variant="h5">
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Price"
|
defaultMessage="Price"
|
||||||
description="variant price, header"
|
description="variant price, header"
|
||||||
|
@ -183,7 +183,7 @@ const ProductVariantCreatePrices: React.FC<
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<FormSpacer />
|
<FormSpacer />
|
||||||
<Typography color="textSecondary" variant="headline">
|
<Typography color="textSecondary" variant="h5">
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="Stock"
|
defaultMessage="Stock"
|
||||||
description="variant stock, header"
|
description="variant stock, header"
|
||||||
|
|
|
@ -123,7 +123,7 @@ const ProductVariantCreateSummary: React.FC<
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Typography color="textSecondary" variant="headline">
|
<Typography color="textSecondary" variant="h5">
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
defaultMessage="You will create variants below"
|
defaultMessage="You will create variants below"
|
||||||
description="header"
|
description="header"
|
||||||
|
|
|
@ -39,8 +39,8 @@ const ProductVariantCreateValues: React.FC<
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{attributes.map(attribute => (
|
{attributes.map(attribute => (
|
||||||
<>
|
<React.Fragment key={attribute.id}>
|
||||||
<Typography color="textSecondary" variant="headline">
|
<Typography color="textSecondary" variant="h5">
|
||||||
{maybe<React.ReactNode>(() => attribute.name, <Skeleton />)}
|
{maybe<React.ReactNode>(() => attribute.name, <Skeleton />)}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Hr className={classes.hr} />
|
<Hr className={classes.hr} />
|
||||||
|
@ -57,10 +57,11 @@ const ProductVariantCreateValues: React.FC<
|
||||||
name={`value:${value.slug}`}
|
name={`value:${value.slug}`}
|
||||||
label={value.name}
|
label={value.name}
|
||||||
onChange={() => onValueClick(attribute.id, value.slug)}
|
onChange={() => onValueClick(attribute.id, value.slug)}
|
||||||
|
key={value.slug}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</React.Fragment>
|
||||||
))}
|
))}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import {
|
import {
|
||||||
add,
|
add,
|
||||||
remove,
|
remove,
|
||||||
|
removeAtIndex,
|
||||||
toggle,
|
toggle,
|
||||||
updateAtIndex,
|
updateAtIndex
|
||||||
removeAtIndex
|
|
||||||
} from "@saleor/utils/lists";
|
} from "@saleor/utils/lists";
|
||||||
import { createVariants } from "./createVariants";
|
import { createVariants } from "./createVariants";
|
||||||
import { initialForm, ProductVariantCreateFormData } from "./form";
|
import { initialForm, ProductVariantCreateFormData } from "./form";
|
||||||
|
|
Loading…
Reference in a new issue