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