@riosst100/pwa-marketplace 2.2.6 → 2.2.8
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
CHANGED
|
@@ -150,15 +150,21 @@ const SetsData = props => {
|
|
|
150
150
|
<>
|
|
151
151
|
{active == "all" && activeYear && activeYear == release_year && newSetsData.length > 1 || active == "all" && !activeYear && newSetsData.length > 1 ?
|
|
152
152
|
<div className={cn('singles_group-wrapper mb-4 px-2 inline-block', classes.singlesGroupWrapper)}>
|
|
153
|
-
<div className='singles_item_group_letter text-
|
|
153
|
+
{shopby == "secret_lair" ? <div className='singles_item_group_letter text-[14px] font-medium border-b border-gray-100 pb-1 mb-2'>
|
|
154
154
|
{group}
|
|
155
|
-
</div>
|
|
155
|
+
</div> : <div className='singles_item_group_letter text-xl font-medium border-b border-gray-100 pb-1 mb-2' >
|
|
156
|
+
{group}
|
|
157
|
+
</div>}
|
|
156
158
|
<div className={cn('singles_item-list flex flex-col')}>{setsResult}</div>
|
|
157
159
|
</div> : ''}
|
|
158
160
|
{active == group || newSetsData.length == 1 ? setsResultSplitted && setsResultSplitted.length && setsResultSplitted.map((setsResult, index) =>
|
|
159
161
|
<div key={index} className={cn('singles_group-wrapper mb-4 px-2 inline-block', classes.singlesGroupWrapper)}>
|
|
160
|
-
{index == 0 ? <div className='singles_item_group_letter text-
|
|
161
|
-
|
|
162
|
+
{index == 0 ? shopby == "secret_lair" ? <div className='singles_item_group_letter text-[14px] font-medium border-b border-gray-100 pb-1 mb-2'>
|
|
163
|
+
{group}
|
|
164
|
+
</div> : <div className='singles_item_group_letter text-xl font-medium border-b border-gray-100 pb-1 mb-2' >
|
|
165
|
+
{group}
|
|
166
|
+
</div> :
|
|
167
|
+
(shopby == "secret_lair" ? <div className='singles_item_group_letter text-[14px] font-medium pb-1 mb-2' style={{"marginTop":"22px"}}></div> : <div className='singles_item_group_letter text-xl font-medium pb-1 mb-2' style={{"marginTop":"35px"}}></div>)}
|
|
162
168
|
<div className={cn('singles_item-list flex flex-col')}>{setsResult}</div>
|
|
163
169
|
</div>
|
|
164
170
|
)
|
|
@@ -107,7 +107,7 @@ 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 || []);
|
|
110
|
+
let variantGallery = variants && variants.length ? variants.flatMap(variant => variant.product.media_gallery_entries || []) : [];
|
|
111
111
|
if (variantGallery) {
|
|
112
112
|
// variantGallery = variantGallery.sort((a, b) => a.uid - b.uid);
|
|
113
113
|
}
|