@riosst100/pwa-marketplace 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/overwrites/peregrine/lib/talons/ProductFullDetail/useProductFullDetail.js +7 -2
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.js +1 -1
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.module.css +1 -0
package/package.json
CHANGED
|
@@ -107,10 +107,15 @@ const getMediaGalleryEntries = (product, optionCodes, optionSelections) => {
|
|
|
107
107
|
const { media_gallery_entries, variants } = product;
|
|
108
108
|
const isConfigurable = isProductConfigurable(product);
|
|
109
109
|
|
|
110
|
+
let variantGallery = variants.flatMap(variant => variant.product.media_gallery_entries || []);
|
|
111
|
+
if (variantGallery) {
|
|
112
|
+
// variantGallery = variantGallery.sort((a, b) => a.uid - b.uid);
|
|
113
|
+
}
|
|
114
|
+
|
|
110
115
|
value = isConfigurable && variants && variants.length > 0
|
|
111
116
|
? [
|
|
112
|
-
...
|
|
113
|
-
...
|
|
117
|
+
...media_gallery_entries,
|
|
118
|
+
...variantGallery
|
|
114
119
|
]
|
|
115
120
|
: media_gallery_entries;
|
|
116
121
|
|
|
@@ -547,7 +547,7 @@ const ProductFullDetail = props => {
|
|
|
547
547
|
'py-xs flex justify-between flex-wrap gap-y-5'
|
|
548
548
|
)}
|
|
549
549
|
>
|
|
550
|
-
<div className='flex flex-col gap-y-3
|
|
550
|
+
<div className='flex flex-col gap-y-3'>
|
|
551
551
|
<div className='flex flex-col gap-y-3'>
|
|
552
552
|
<p
|
|
553
553
|
data-cy="ProductFullDetail-productPrice"
|