@riosst100/pwa-marketplace 2.5.2 → 2.5.4
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
|
@@ -137,13 +137,13 @@ const SetsData = props => {
|
|
|
137
137
|
);
|
|
138
138
|
|
|
139
139
|
if (parseInt(products_count) > 0) {
|
|
140
|
-
setsResult.push(<li className='list-none'>
|
|
140
|
+
setsResult.push(<li key={index} className='list-none'>
|
|
141
141
|
<Link to={categoryUrl} className="hover_bg-darkblue-900 hover_text-white w-full block text-[14px] py-[2px] px-0">
|
|
142
142
|
{set_name} <span className='text-[12px]'>({products_count})</span>
|
|
143
143
|
</Link>
|
|
144
144
|
</li>)
|
|
145
145
|
} else {
|
|
146
|
-
setsResult.push(<li className='list-none'>
|
|
146
|
+
setsResult.push(<li key={index} className='list-none'>
|
|
147
147
|
<span className="text-[#8f8f8f] w-full block text-[14px] py-[2px] px-0">
|
|
148
148
|
{set_name} <span className='text-[12px]'>({products_count})</span>
|
|
149
149
|
</span>
|
|
@@ -264,26 +264,6 @@ const SetsData = props => {
|
|
|
264
264
|
<Fragment>
|
|
265
265
|
<StoreTitle>{title}</StoreTitle>
|
|
266
266
|
<Breadcrumbs categoryId={categoryId} currentFilter={activeFilters} customPage={shopby == "singles" ? "Mini-Figures" : title} />
|
|
267
|
-
{/* <ul className={classes.nav}>
|
|
268
|
-
<li className={classes.nav_item}>
|
|
269
|
-
<button
|
|
270
|
-
onClick={() => {
|
|
271
|
-
handleActiveTab('year')
|
|
272
|
-
}}
|
|
273
|
-
>
|
|
274
|
-
{activeTab == 'year' ? <b>{byYearTitle}</b> : byYearTitle}
|
|
275
|
-
</button>
|
|
276
|
-
</li>
|
|
277
|
-
<li className={classes.nav_item}>
|
|
278
|
-
<button
|
|
279
|
-
onClick={() => {
|
|
280
|
-
handleActiveTab('all')
|
|
281
|
-
}}
|
|
282
|
-
>
|
|
283
|
-
{activeTab == 'all' ? <b>{allSetsTitle}</b> : allSetsTitle}
|
|
284
|
-
</button>
|
|
285
|
-
</li>
|
|
286
|
-
</ul> */}
|
|
287
267
|
{shopby == "secret_lair" ? <>
|
|
288
268
|
<ul className={classes.nav}>
|
|
289
269
|
{availableYears.map((group, index) => (
|
|
@@ -297,7 +277,7 @@ const SetsData = props => {
|
|
|
297
277
|
</button>
|
|
298
278
|
</li>
|
|
299
279
|
))}
|
|
300
|
-
<li className={classes.nav_item}>
|
|
280
|
+
<li key={"all"} className={classes.nav_item}>
|
|
301
281
|
<button
|
|
302
282
|
onClick={() => {
|
|
303
283
|
handleActiveYear('')
|
|
@@ -321,7 +301,7 @@ const SetsData = props => {
|
|
|
321
301
|
</button>
|
|
322
302
|
</li>
|
|
323
303
|
))}
|
|
324
|
-
<li className={classes.nav_item}>
|
|
304
|
+
<li key={"all"} className={classes.nav_item}>
|
|
325
305
|
<button
|
|
326
306
|
onClick={() => {
|
|
327
307
|
handleActiveFilter('')
|
|
@@ -347,7 +327,7 @@ const SetsData = props => {
|
|
|
347
327
|
</button>
|
|
348
328
|
</li>
|
|
349
329
|
))}
|
|
350
|
-
<li className={classes.nav_item}>
|
|
330
|
+
<li key={'all'} className={classes.nav_item}>
|
|
351
331
|
<button
|
|
352
332
|
onClick={() => {
|
|
353
333
|
handleActive('all')
|
|
@@ -369,7 +349,7 @@ const SetsData = props => {
|
|
|
369
349
|
</button>
|
|
370
350
|
</li>
|
|
371
351
|
))}
|
|
372
|
-
{availableGroups && availableGroups.length ? <li className={classes.nav_item}>
|
|
352
|
+
{availableGroups && availableGroups.length ? <li key={'all'} className={classes.nav_item}>
|
|
373
353
|
<button
|
|
374
354
|
onClick={() => {
|
|
375
355
|
handleActive('all')
|
|
@@ -390,7 +370,7 @@ const SetsData = props => {
|
|
|
390
370
|
) : ''}
|
|
391
371
|
{shopby != "secret_lair" && <section className='single_list-indexing-container relative m-auto pt-5'>
|
|
392
372
|
{shopby != "secret_lair" && !activeFilter && activeTab != "year" && <ul className='flex gap-2 justify-center flex-wrap'>
|
|
393
|
-
<li>
|
|
373
|
+
<li key={'all'}>
|
|
394
374
|
<button
|
|
395
375
|
className={cn(
|
|
396
376
|
'rounded-md border border-solid border-gray-100 p-2 min-w-[28px]',
|
package/src/intercept.js
CHANGED
|
@@ -221,12 +221,12 @@ module.exports = targets => {
|
|
|
221
221
|
return routesArray;
|
|
222
222
|
});
|
|
223
223
|
|
|
224
|
-
targets.of('@magento/venia-ui').checkoutPagePaymentTypes.tap(checkoutPagePaymentTypes =>
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
);
|
|
224
|
+
// targets.of('@magento/venia-ui').checkoutPagePaymentTypes.tap(checkoutPagePaymentTypes =>
|
|
225
|
+
// checkoutPagePaymentTypes.add({
|
|
226
|
+
// paymentCode: 'xendit',
|
|
227
|
+
// importPath: '@riosst100/pwa-marketplace/src/components/Xendit/xendit.js'
|
|
228
|
+
// })
|
|
229
|
+
// );
|
|
230
230
|
|
|
231
231
|
// targets.of('@magento/venia-ui').summaryPagePaymentTypes.tap(summaryPagePaymentTypes =>
|
|
232
232
|
// summaryPagePaymentTypes.add({
|
|
@@ -36,15 +36,17 @@ export const useFilterSidebar = props => {
|
|
|
36
36
|
|
|
37
37
|
const { data: introspectionData } = useQuery(getFilterInputsQuery);
|
|
38
38
|
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
const subFilterItems = [];
|
|
40
|
+
|
|
41
|
+
// const {
|
|
42
|
+
// called: subFilterItemsCalled,
|
|
43
|
+
// data: subFilterItems,
|
|
44
|
+
// loading: subFilterItemsLoading
|
|
45
|
+
// } = useQuery(getSubFiltersQuery,
|
|
46
|
+
// {
|
|
47
|
+
// fetchPolicy: 'cache-and-network',
|
|
48
|
+
// nextFetchPolicy: 'cache-first'
|
|
49
|
+
// });
|
|
48
50
|
|
|
49
51
|
const attributeCodes = useMemo(
|
|
50
52
|
() => filters.map(({ attribute_code }) => attribute_code),
|
package/src/overwrites/peregrine/lib/talons/RootComponents/Category/categoryFragments.gql.js
CHANGED
|
@@ -16,48 +16,9 @@ export const ProductsFragment = gql`
|
|
|
16
16
|
id
|
|
17
17
|
uid
|
|
18
18
|
name
|
|
19
|
-
preorder {
|
|
20
|
-
is_preorder
|
|
21
|
-
preorder_notes
|
|
22
|
-
preorder_availability
|
|
23
|
-
}
|
|
24
|
-
auction_data {
|
|
25
|
-
is_auction
|
|
26
|
-
}
|
|
27
19
|
seller {
|
|
28
20
|
name
|
|
29
21
|
}
|
|
30
|
-
custom_attributes {
|
|
31
|
-
selected_attribute_options {
|
|
32
|
-
attribute_option {
|
|
33
|
-
uid
|
|
34
|
-
label
|
|
35
|
-
is_default
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
entered_attribute_value {
|
|
39
|
-
value
|
|
40
|
-
}
|
|
41
|
-
attribute_metadata {
|
|
42
|
-
uid
|
|
43
|
-
code
|
|
44
|
-
label
|
|
45
|
-
attribute_labels {
|
|
46
|
-
store_code
|
|
47
|
-
label
|
|
48
|
-
}
|
|
49
|
-
data_type
|
|
50
|
-
is_system
|
|
51
|
-
entity_type
|
|
52
|
-
ui_input {
|
|
53
|
-
ui_input_type
|
|
54
|
-
is_html_allowed
|
|
55
|
-
}
|
|
56
|
-
... on ProductAttributeMetadata {
|
|
57
|
-
used_in_components
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
22
|
price_range {
|
|
62
23
|
maximum_price {
|
|
63
24
|
final_price {
|
|
@@ -90,8 +51,6 @@ export const ProductsFragment = gql`
|
|
|
90
51
|
small_image {
|
|
91
52
|
url
|
|
92
53
|
}
|
|
93
|
-
stock_status
|
|
94
|
-
rating_summary
|
|
95
54
|
__typename
|
|
96
55
|
url_key
|
|
97
56
|
}
|