diff --git a/locale/defaultMessages.json b/locale/defaultMessages.json index 069e84454..3b45df2fa 100644 --- a/locale/defaultMessages.json +++ b/locale/defaultMessages.json @@ -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 don’t have assigned discounts will use their parent channel to define the price. Price will be converted to channel’s currency" }, diff --git a/src/products/components/ProductList/ProductList.tsx b/src/products/components/ProductList/ProductList.tsx index e183f3f8f..f24e3bf8a 100644 --- a/src/products/components/ProductList/ProductList.tsx +++ b/src/products/components/ProductList/ProductList.tsx @@ -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 = props => { product.thumbnail.url)} > - {product?.productType ? ( -
- {product.name} - {product?.productType && ( - - {product.productType.hasVariants ? ( - - ) : ( - - )} - - )} -
+ {product?.name ? ( + {product.name} ) : ( )} diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index c01a8ada2..ab04632bc 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -207692,20 +207692,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Nebula Night Sky Paint - -
- Configurable -
-
+ Nebula Night Sky Paint +
@@ -207797,20 +207788,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Light Speed Yellow Paint - -
- Configurable -
-
+ Light Speed Yellow Paint +
@@ -207902,20 +207884,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Hyperspace Turquoise Paint - -
- Configurable -
-
+ Hyperspace Turquoise Paint +
@@ -208007,20 +207980,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Pineapple Juice - -
- Configurable -
-
+ Pineapple Juice +
@@ -208112,20 +208076,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Coconut Juice - -
- Configurable -
-
+ Coconut Juice +
@@ -208217,20 +208172,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Apple Juice - -
- Configurable -
-
+ Apple Juice +
@@ -208322,20 +208268,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Orange Juice - -
- Configurable -
-
+ Orange Juice +
@@ -208427,20 +208364,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Banana Juice - -
- Configurable -
-
+ Banana Juice +
@@ -208532,20 +208460,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Bean Juice - -
- Configurable -
-
+ Bean Juice +
@@ -208637,20 +208556,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Carrot Juice - -
- Configurable -
-
+ Carrot Juice +
@@ -208742,20 +208652,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Green Juice - -
- Configurable -
-
+ Green Juice +
@@ -208847,20 +208748,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Code Division T-shirt - -
- Configurable -
-
+ Code Division T-shirt +
@@ -208952,20 +208844,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -209057,20 +208940,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -209162,20 +209036,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -209267,20 +209132,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -209372,20 +209228,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Black Hoodie - -
- Configurable -
-
+ Black Hoodie +
@@ -209477,20 +209324,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Blue Hoodie - -
- Configurable -
-
+ Blue Hoodie +
@@ -209582,20 +209420,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Mustard Hoodie - -
- Configurable -
-
+ Mustard Hoodie +
@@ -209687,20 +209516,11 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
-
- - Colored Parrot Cushion - -
- Configurable -
-
+ Colored Parrot Cushion +
@@ -210401,20 +210221,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Nebula Night Sky Paint - -
- Configurable -
-
+ Nebula Night Sky Paint +
@@ -210506,20 +210317,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Light Speed Yellow Paint - -
- Configurable -
-
+ Light Speed Yellow Paint +
@@ -210611,20 +210413,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Hyperspace Turquoise Paint - -
- Configurable -
-
+ Hyperspace Turquoise Paint +
@@ -210716,20 +210509,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Pineapple Juice - -
- Configurable -
-
+ Pineapple Juice +
@@ -210821,20 +210605,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Coconut Juice - -
- Configurable -
-
+ Coconut Juice +
@@ -210926,20 +210701,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Apple Juice - -
- Configurable -
-
+ Apple Juice +
@@ -211031,20 +210797,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Orange Juice - -
- Configurable -
-
+ Orange Juice +
@@ -211136,20 +210893,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Banana Juice - -
- Configurable -
-
+ Banana Juice +
@@ -211241,20 +210989,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Bean Juice - -
- Configurable -
-
+ Bean Juice +
@@ -211346,20 +211085,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Carrot Juice - -
- Configurable -
-
+ Carrot Juice +
@@ -211451,20 +211181,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Green Juice - -
- Configurable -
-
+ Green Juice +
@@ -211556,20 +211277,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Code Division T-shirt - -
- Configurable -
-
+ Code Division T-shirt +
@@ -211661,20 +211373,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -211766,20 +211469,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -211871,20 +211565,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -211976,20 +211661,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -212081,20 +211757,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Black Hoodie - -
- Configurable -
-
+ Black Hoodie +
@@ -212186,20 +211853,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Blue Hoodie - -
- Configurable -
-
+ Blue Hoodie +
@@ -212291,20 +211949,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Mustard Hoodie - -
- Configurable -
-
+ Mustard Hoodie +
@@ -212396,20 +212045,11 @@ exports[`Storyshots Views / Products / Product list limits reached 1`] = `
-
- - Colored Parrot Cushion - -
- Configurable -
-
+ Colored Parrot Cushion +
@@ -213601,20 +213241,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Nebula Night Sky Paint - -
- Configurable -
-
+ Nebula Night Sky Paint +
@@ -213706,20 +213337,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Light Speed Yellow Paint - -
- Configurable -
-
+ Light Speed Yellow Paint +
@@ -213811,20 +213433,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Hyperspace Turquoise Paint - -
- Configurable -
-
+ Hyperspace Turquoise Paint +
@@ -213916,20 +213529,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Pineapple Juice - -
- Configurable -
-
+ Pineapple Juice +
@@ -214021,20 +213625,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Coconut Juice - -
- Configurable -
-
+ Coconut Juice +
@@ -214126,20 +213721,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Apple Juice - -
- Configurable -
-
+ Apple Juice +
@@ -214231,20 +213817,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Orange Juice - -
- Configurable -
-
+ Orange Juice +
@@ -214336,20 +213913,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Banana Juice - -
- Configurable -
-
+ Banana Juice +
@@ -214441,20 +214009,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Bean Juice - -
- Configurable -
-
+ Bean Juice +
@@ -214546,20 +214105,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Carrot Juice - -
- Configurable -
-
+ Carrot Juice +
@@ -214651,20 +214201,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Green Juice - -
- Configurable -
-
+ Green Juice +
@@ -214756,20 +214297,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Code Division T-shirt - -
- Configurable -
-
+ Code Division T-shirt +
@@ -214861,20 +214393,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -214966,20 +214489,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -215071,20 +214585,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -215176,20 +214681,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -215281,20 +214777,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Black Hoodie - -
- Configurable -
-
+ Black Hoodie +
@@ -215386,20 +214873,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Blue Hoodie - -
- Configurable -
-
+ Blue Hoodie +
@@ -215491,20 +214969,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Mustard Hoodie - -
- Configurable -
-
+ Mustard Hoodie +
@@ -215596,20 +215065,11 @@ exports[`Storyshots Views / Products / Product list no channels 1`] = `
-
- - Colored Parrot Cushion - -
- Configurable -
-
+ Colored Parrot Cushion +
@@ -216639,20 +216099,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Nebula Night Sky Paint - -
- Configurable -
-
+ Nebula Night Sky Paint +
@@ -216744,20 +216195,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Light Speed Yellow Paint - -
- Configurable -
-
+ Light Speed Yellow Paint +
@@ -216849,20 +216291,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Hyperspace Turquoise Paint - -
- Configurable -
-
+ Hyperspace Turquoise Paint +
@@ -216954,20 +216387,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Pineapple Juice - -
- Configurable -
-
+ Pineapple Juice +
@@ -217059,20 +216483,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Coconut Juice - -
- Configurable -
-
+ Coconut Juice +
@@ -217164,20 +216579,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Apple Juice - -
- Configurable -
-
+ Apple Juice +
@@ -217269,20 +216675,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Orange Juice - -
- Configurable -
-
+ Orange Juice +
@@ -217374,20 +216771,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Banana Juice - -
- Configurable -
-
+ Banana Juice +
@@ -217479,20 +216867,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Bean Juice - -
- Configurable -
-
+ Bean Juice +
@@ -217584,20 +216963,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Carrot Juice - -
- Configurable -
-
+ Carrot Juice +
@@ -217689,20 +217059,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Green Juice - -
- Configurable -
-
+ Green Juice +
@@ -217794,20 +217155,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Code Division T-shirt - -
- Configurable -
-
+ Code Division T-shirt +
@@ -217899,20 +217251,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -218004,20 +217347,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -218109,20 +217443,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -218214,20 +217539,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -218319,20 +217635,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Black Hoodie - -
- Configurable -
-
+ Black Hoodie +
@@ -218424,20 +217731,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Blue Hoodie - -
- Configurable -
-
+ Blue Hoodie +
@@ -218529,20 +217827,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Mustard Hoodie - -
- Configurable -
-
+ Mustard Hoodie +
@@ -218634,20 +217923,11 @@ exports[`Storyshots Views / Products / Product list no limits 1`] = `
-
- - Colored Parrot Cushion - -
- Configurable -
-
+ Colored Parrot Cushion +
@@ -219265,20 +218545,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Nebula Night Sky Paint - -
- Configurable -
-
+ Nebula Night Sky Paint +
@@ -219370,20 +218641,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Light Speed Yellow Paint - -
- Configurable -
-
+ Light Speed Yellow Paint +
@@ -219475,20 +218737,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Hyperspace Turquoise Paint - -
- Configurable -
-
+ Hyperspace Turquoise Paint +
@@ -219580,20 +218833,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Pineapple Juice - -
- Configurable -
-
+ Pineapple Juice +
@@ -219685,20 +218929,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Coconut Juice - -
- Configurable -
-
+ Coconut Juice +
@@ -219790,20 +219025,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Apple Juice - -
- Configurable -
-
+ Apple Juice +
@@ -219895,20 +219121,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Orange Juice - -
- Configurable -
-
+ Orange Juice +
@@ -220000,20 +219217,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Banana Juice - -
- Configurable -
-
+ Banana Juice +
@@ -220105,20 +219313,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Bean Juice - -
- Configurable -
-
+ Bean Juice +
@@ -220210,20 +219409,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Carrot Juice - -
- Configurable -
-
+ Carrot Juice +
@@ -220315,20 +219505,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Green Juice - -
- Configurable -
-
+ Green Juice +
@@ -220420,20 +219601,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Code Division T-shirt - -
- Configurable -
-
+ Code Division T-shirt +
@@ -220525,20 +219697,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -220630,20 +219793,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -220735,20 +219889,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -220840,20 +219985,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Polo Shirt - -
- Configurable -
-
+ Polo Shirt +
@@ -220945,20 +220081,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Black Hoodie - -
- Configurable -
-
+ Black Hoodie +
@@ -221050,20 +220177,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Blue Hoodie - -
- Configurable -
-
+ Blue Hoodie +
@@ -221155,20 +220273,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Mustard Hoodie - -
- Configurable -
-
+ Mustard Hoodie +
@@ -221260,20 +220369,11 @@ exports[`Storyshots Views / Products / Product list with data 1`] = `
-
- - Colored Parrot Cushion - -
- Configurable -
-
+ Colored Parrot Cushion +