Remove product type from product name cell in product list (#2283)

* Remove simple/configurable info from product list

* Update snapshots

* Remove unused import

* Extract messages

* Trigger deployment
This commit is contained in:
Michał Droń 2022-09-13 15:41:46 +02:00 committed by GitHub
parent 8f0cdf0134
commit a989996b1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 403 additions and 1332 deletions

View file

@ -2807,10 +2807,6 @@
"context": "delete attribute value",
"string": "Are you sure you want to delete \"{name}\" value?"
},
"Jz/Cb+": {
"context": "product type",
"string": "Simple"
},
"K+ROF8": {
"string": "Channels that dont have assigned discounts will use their parent channel to define the price. Price will be converted to channels currency"
},

View file

@ -1,10 +1,4 @@
import {
TableBody,
TableCell,
TableFooter,
TableRow,
Typography,
} from "@material-ui/core";
import { TableBody, TableCell, TableFooter, TableRow } from "@material-ui/core";
import { ChannelsAvailabilityDropdown } from "@saleor/components/ChannelsAvailabilityDropdown";
import {
getChannelAvailabilityColor,
@ -356,27 +350,8 @@ export const ProductList: React.FC<ProductListProps> = props => {
<TableCellAvatar
thumbnail={maybe(() => product.thumbnail.url)}
>
{product?.productType ? (
<div className={classes.colNameWrapper}>
<span data-test-id="name">{product.name}</span>
{product?.productType && (
<Typography variant="caption">
{product.productType.hasVariants ? (
<FormattedMessage
id="X90t9n"
defaultMessage="Configurable"
description="product type"
/>
) : (
<FormattedMessage
id="Jz/Cb+"
defaultMessage="Simple"
description="product type"
/>
)}
</Typography>
)}
</div>
{product?.name ? (
<span data-test-id="name">{product.name}</span>
) : (
<Skeleton />
)}

File diff suppressed because it is too large Load diff