Hide product variant hint when variants added
This commit is contained in:
parent
b7dfb8a38c
commit
f5fb676966
1 changed files with 7 additions and 6 deletions
|
@ -90,7 +90,6 @@ export const ProductVariants = withStyles(styles, { name: "ProductVariants" })(
|
||||||
toolbar
|
toolbar
|
||||||
}: ProductVariantsProps) => {
|
}: ProductVariantsProps) => {
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card>
|
<Card>
|
||||||
<CardTitle
|
<CardTitle
|
||||||
|
@ -125,11 +124,13 @@ export const ProductVariants = withStyles(styles, { name: "ProductVariants" })(
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<CardContent>
|
{!variants.length && (
|
||||||
<Typography>
|
<CardContent>
|
||||||
<FormattedMessage defaultMessage="Use variants for products that come in a variety of versions for example different sizes or colors" />
|
<Typography>
|
||||||
</Typography>
|
<FormattedMessage defaultMessage="Use variants for products that come in a variety of versions for example different sizes or colors" />
|
||||||
</CardContent>
|
</Typography>
|
||||||
|
</CardContent>
|
||||||
|
)}
|
||||||
<Table className={classes.denseTable}>
|
<Table className={classes.denseTable}>
|
||||||
<TableHead
|
<TableHead
|
||||||
colSpan={numberOfColumns}
|
colSpan={numberOfColumns}
|
||||||
|
|
Loading…
Reference in a new issue