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:
parent
8f0cdf0134
commit
a989996b1f
3 changed files with 403 additions and 1332 deletions
|
@ -2807,10 +2807,6 @@
|
||||||
"context": "delete attribute value",
|
"context": "delete attribute value",
|
||||||
"string": "Are you sure you want to delete \"{name}\" value?"
|
"string": "Are you sure you want to delete \"{name}\" value?"
|
||||||
},
|
},
|
||||||
"Jz/Cb+": {
|
|
||||||
"context": "product type",
|
|
||||||
"string": "Simple"
|
|
||||||
},
|
|
||||||
"K+ROF8": {
|
"K+ROF8": {
|
||||||
"string": "Channels that don’t have assigned discounts will use their parent channel to define the price. Price will be converted to channel’s currency"
|
"string": "Channels that don’t have assigned discounts will use their parent channel to define the price. Price will be converted to channel’s currency"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
import {
|
import { TableBody, TableCell, TableFooter, TableRow } from "@material-ui/core";
|
||||||
TableBody,
|
|
||||||
TableCell,
|
|
||||||
TableFooter,
|
|
||||||
TableRow,
|
|
||||||
Typography,
|
|
||||||
} from "@material-ui/core";
|
|
||||||
import { ChannelsAvailabilityDropdown } from "@saleor/components/ChannelsAvailabilityDropdown";
|
import { ChannelsAvailabilityDropdown } from "@saleor/components/ChannelsAvailabilityDropdown";
|
||||||
import {
|
import {
|
||||||
getChannelAvailabilityColor,
|
getChannelAvailabilityColor,
|
||||||
|
@ -356,27 +350,8 @@ export const ProductList: React.FC<ProductListProps> = props => {
|
||||||
<TableCellAvatar
|
<TableCellAvatar
|
||||||
thumbnail={maybe(() => product.thumbnail.url)}
|
thumbnail={maybe(() => product.thumbnail.url)}
|
||||||
>
|
>
|
||||||
{product?.productType ? (
|
{product?.name ? (
|
||||||
<div className={classes.colNameWrapper}>
|
|
||||||
<span data-test-id="name">{product.name}</span>
|
<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>
|
|
||||||
) : (
|
) : (
|
||||||
<Skeleton />
|
<Skeleton />
|
||||||
)}
|
)}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue