@riosst100/pwa-marketplace 1.8.7 → 1.8.9

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.
Files changed (28) hide show
  1. package/package.json +1 -1
  2. package/src/components/CustomSubCategoryPage/subCategoryPage.js +5 -3
  3. package/src/components/FilterTopBackup/CustomFilters/customFilters.js +2 -0
  4. package/src/components/LegoSets/legoSets.js +50 -19
  5. package/src/components/NonSportCardsSets/index.js +2 -0
  6. package/src/components/NonSportCardsSets/nonSportCardsSets.js +270 -0
  7. package/src/components/NonSportCardsSets/nonSportCardsSets.module.css +76 -0
  8. package/src/components/NonSportCardsSets/nonSportCardsSets.shimmer.js +50 -0
  9. package/src/components/ShopBy/shopBy.js +8 -1
  10. package/src/components/ShopByVehicles/index.js +2 -0
  11. package/src/components/ShopByVehicles/shopByVehicles.js +328 -0
  12. package/src/components/ShopByVehicles/shopByVehicles.shimmer.js +50 -0
  13. package/src/components/SportCardsSets/sportCardsSets.js +71 -154
  14. package/src/components/SubCategory/customSubCategory.js +19 -9
  15. package/src/overwrites/venia-ui/lib/RootComponents/Category/category.js +5 -1
  16. package/src/overwrites/venia-ui/lib/RootComponents/Category/categoryContent.js +31 -5
  17. package/src/overwrites/venia-ui/lib/components/Breadcrumbs/breadcrumbs.js +12 -3
  18. package/src/overwrites/venia-ui/lib/components/FilterModal/CurrentFilters/currentFilters.js +2 -2
  19. package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.js +1 -1
  20. package/src/talons/LegoSets/legoSets.gql.js +2 -2
  21. package/src/talons/LegoSets/useLegoSets.js +4 -2
  22. package/src/talons/NonSportCardsSets/nonSportCardsSets.gql.js +59 -0
  23. package/src/talons/NonSportCardsSets/useNonSportCardsSets.js +238 -0
  24. package/src/talons/ShopBy/useShopBy.js +13 -3
  25. package/src/talons/ShopByVehicles/shopByVehicles.gql.js +59 -0
  26. package/src/talons/ShopByVehicles/useShopByVehicles.js +222 -0
  27. package/src/talons/SportCardsSets/sportCardsSets.gql.js +2 -2
  28. package/src/talons/SportCardsSets/useSportCardsSets.js +10 -10
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@riosst100/pwa-marketplace",
3
3
  "author": "riosst100@gmail.com",
4
- "version": "1.8.7",
4
+ "version": "1.8.9",
5
5
  "main": "src/index.js",
6
6
  "pwa-studio": {
7
7
  "targets": {
@@ -69,12 +69,14 @@ const SubCategoryPage = props => {
69
69
  setSearchQuery('')
70
70
  }
71
71
 
72
+ const title = category ? 'All ' + category.parent[0].name : '';
73
+
72
74
  return (
73
75
  <Fragment>
74
- <StoreTitle>{category ? category.name : 'Shop By'}</StoreTitle>
75
- <Breadcrumbs categoryId={categoryId} customPage={category ? 'All ' + category.parent[0].name : ''} />
76
+ <StoreTitle>{title}</StoreTitle>
77
+ <Breadcrumbs categoryId={categoryId} customPage={title} />
76
78
  <h1 className='mx-auto relative block text-xl font-bold text-center pt-10 pb-4'>
77
- {category ? 'All ' + category.parent[0].name : ''}
79
+ {title}
78
80
  </h1>
79
81
  <div className='border border-gray-100 px-6'>
80
82
  {dataResult ? (
@@ -54,6 +54,8 @@ const CustomFilters = props => {
54
54
  // removeItem({ group, item });
55
55
  // }, [group, item, removeItem]);
56
56
 
57
+ // console.log(customFiltersData)
58
+
57
59
  // create elements and params at the same time for efficiency
58
60
  const filterElements = useMemo(() => {
59
61
  const elements = [];
@@ -23,7 +23,7 @@ const LegoSets = props => {
23
23
 
24
24
  const [active, setActive] = useState('all');
25
25
  const [activeTab, setActiveTab] = useState('all');
26
-
26
+ const [activeFilter, setActiveFilter] = useState('');
27
27
  const [searchQuery, setSearchQuery] = useState('');
28
28
 
29
29
  const shopby = query.get('shopby') || null;
@@ -69,7 +69,7 @@ const LegoSets = props => {
69
69
 
70
70
  const classes = useStyle(defaultClasses);
71
71
 
72
- const talonProps = useLegoSets({ searchQuery, setActive, currentSort, shopby, setType, categoryId, activeTab });
72
+ const talonProps = useLegoSets({ activeFilter, searchQuery, setActive, currentSort, shopby, setType, categoryId, activeTab });
73
73
 
74
74
  const { error, loading, legoSets, categoryUrlSuffix, categoryUrlKey, productType, filteredLegoSets, availableGroups, category } = talonProps;
75
75
 
@@ -106,11 +106,11 @@ const LegoSets = props => {
106
106
  let allSetsTitle = "Sets";
107
107
  let attributeCode = "lego_set_name";
108
108
  let byYearTitle = "By Year";
109
- if (shopby == "singles") {
110
- attributeCode = "lego_set_name";
111
- allSetsTitle = "Singles";
112
- byYearTitle = "By Year";
113
- }
109
+ // if (shopby == "singles") {
110
+ // attributeCode = "lego_set_name";
111
+ // // allSetsTitle = "Singles";
112
+ // byYearTitle = "By Year";
113
+ // }
114
114
 
115
115
  const setRelases = newLegoSets && newLegoSets.length && newLegoSets.map((setRelease, index) => {
116
116
  const { group, sets } = setRelease;
@@ -127,7 +127,8 @@ const LegoSets = props => {
127
127
 
128
128
  setsResult.push(<li className='list-none'>
129
129
  <Link to={categoryUrl} className="hover_bg-darkblue-900 hover_text-white w-full block text-[14px] py-[2px] px-2">
130
- {set_name}
130
+ <b>{set_name}</b>
131
+ <div style={{"fontSize": "12px"}}>589 Parts, 2 Minifigures</div>
131
132
  </Link>
132
133
  </li>)
133
134
  })
@@ -167,7 +168,8 @@ const LegoSets = props => {
167
168
 
168
169
  const handleActiveTab = (val) => {
169
170
  setActiveTab(val);
170
- setActive('all')
171
+ setActive('all');
172
+ setActiveFilter('');
171
173
 
172
174
  setSearchQuery('')
173
175
  }
@@ -182,19 +184,26 @@ const LegoSets = props => {
182
184
  if (activeTab == "year") {
183
185
  title = "Sets | By Year";
184
186
  }
187
+
188
+ const availableFilters = [
189
+ 'Theme',
190
+ 'Sub-Theme',
191
+ 'Interest',
192
+ 'Age Level'
193
+ ];
185
194
 
186
- if (shopby == "singles") {
187
- title = "Singles";
188
- if (activeTab == "year") {
189
- title = "Singles | By Year";
190
- }
195
+ const handleActiveFilter = (val) => {
196
+ setActiveFilter(val);
197
+
198
+ setActive('all');
199
+
200
+ setSearchQuery('')
191
201
  }
192
-
193
202
 
194
203
  return (
195
204
  <Fragment>
196
205
  <StoreTitle>{title}</StoreTitle>
197
- <Breadcrumbs categoryId={categoryId} customPage={title} />
206
+ <Breadcrumbs categoryId={categoryId} customPage={shopby == "singles" ? "Mini-Figures" : title} />
198
207
  <ul className={classes.nav}>
199
208
  <li className={classes.nav_item}>
200
209
  <button
@@ -215,10 +224,32 @@ const LegoSets = props => {
215
224
  </button>
216
225
  </li>
217
226
  </ul>
227
+ {shopby == "lego_set_name" && activeTab == "all" ? <><ul className={classes.nav}>
228
+ {availableFilters.map((group, index) => (
229
+ <li key={index} className={classes.nav_item}>
230
+ <button
231
+ onClick={() => {
232
+ handleActiveFilter(group)
233
+ }}
234
+ >
235
+ {activeFilter == group ? <b>{group}</b> : group}
236
+ </button>
237
+ </li>
238
+ ))}<li className={classes.nav_item}>
239
+ <button
240
+ onClick={() => {
241
+ handleActiveFilter('')
242
+ }}
243
+ >
244
+ {!activeFilter ? <b>A-Z</b> : 'A-Z'}
245
+ </button>
246
+ </li></ul>
247
+
248
+ </> : ''}
218
249
  <h1 className='mx-auto relative block text-xl font-bold text-center pt-10 pb-4'>
219
250
  {title}
220
251
  </h1>
221
- {activeTab == "year" && <ul className={classes.nav}>
252
+ {activeTab == "year" && availableGroups ? <ul className={classes.nav}>
222
253
  {availableGroups.map((group, index) => (
223
254
  <li key={index} className={classes.nav_item}>
224
255
  <button
@@ -239,7 +270,7 @@ const LegoSets = props => {
239
270
  {active == 'all' ? <b>All</b> : 'All'}
240
271
  </button>
241
272
  </li>
242
- </ul>}
273
+ </ul> : ''}
243
274
  <div className='border border-gray-100 px-6'>
244
275
  {legoSets ? (
245
276
  <div
@@ -250,7 +281,7 @@ const LegoSets = props => {
250
281
  </div>
251
282
  ) : ''}
252
283
  <section className='single_list-indexing-container relative m-auto pt-5'>
253
- {activeTab != "year" && <ul className='flex gap-2 justify-center flex-wrap'>
284
+ {!activeFilter && activeTab != "year" && <ul className='flex gap-2 justify-center flex-wrap'>
254
285
  <li>
255
286
  <button
256
287
  className={cn(
@@ -0,0 +1,2 @@
1
+ export { default } from './nonSportCardsSets';
2
+ export { default as NonSportCardsSetsShimmer } from './nonSportCardsSets.shimmer';
@@ -0,0 +1,270 @@
1
+ import React, { Fragment, useEffect, useMemo, useState } from 'react';
2
+ import ErrorView from '@magento/venia-ui/lib/components/ErrorView';
3
+ import { StoreTitle, Meta } from '@magento/venia-ui/lib/components/Head';
4
+ import { useNonSportCardsSets } from '@riosst100/pwa-marketplace/src/talons/NonSportCardsSets/useNonSportCardsSets';
5
+ import { Link, useLocation } from 'react-router-dom';
6
+ import resourceUrl from '@magento/peregrine/lib/util/makeUrl';
7
+ import defaultClasses from './nonSportCardsSets.module.css';
8
+ import { useStyle } from '@magento/venia-ui/lib/classify';
9
+ import cn from 'classnames';
10
+ import Divider from '@riosst100/pwa-marketplace/src/components/Divider';
11
+ import { NonSportCardsSetsShimmer } from '@riosst100/pwa-marketplace/src/components/NonSportCardsSets';
12
+ import CustomSortBy from '@riosst100/pwa-marketplace/src/components/CustomSortBy';
13
+ import ArraySearchInput from '@riosst100/pwa-marketplace/src/components/ArraySearchInput';
14
+ import { useCustomSort } from '@riosst100/pwa-marketplace/src/hooks/useCustomSort';
15
+ import Breadcrumbs from '@magento/venia-ui/lib/components/Breadcrumbs';
16
+
17
+ const NonSportCardsSets = props => {
18
+ const { categoryId } = props
19
+
20
+ const { location } = globalThis;
21
+
22
+ const query = new URLSearchParams(location.search);
23
+ const activeParam = query.get('active_tab') || null;
24
+
25
+ const [active, setActive] = useState('all');
26
+ const [activeTab, setActiveTab] = useState(activeParam ? activeParam : 'leagues');
27
+ const [activeBrand, setActiveBrand] = useState('all');
28
+
29
+ const [searchQuery, setSearchQuery] = useState('');
30
+
31
+ let availableLeagues = [];
32
+ let availableBrands = [];
33
+
34
+ const shopby = query.get('shopby') || null;
35
+ let setType = query.get('nsc_set_type[filter]') || null;
36
+ const brandsFilter = query.get('sc_brands[filter]') || null;
37
+
38
+ if (setType && setType.includes("Inserts")) {
39
+ setType = "Inserts";
40
+ }
41
+
42
+ let defaultSort = {
43
+ sortText: 'All (A-Z)',
44
+ value: 'all'
45
+ };
46
+
47
+ if (shopby == "release_year") {
48
+ defaultSort = {
49
+ sortText: 'All (By Year)',
50
+ value: 'date'
51
+ };
52
+ }
53
+
54
+ const sortProps = useCustomSort({ sortFromSearch: false, defaultSort: defaultSort});
55
+
56
+ const [currentSort] = sortProps;
57
+
58
+ const [sortBy, setSortBy] = useState({
59
+ sortText: 'All (A-Z)',
60
+ value: 'all'
61
+ });
62
+
63
+
64
+ const classes = useStyle(defaultClasses);
65
+
66
+ const talonProps = useNonSportCardsSets({ searchQuery, setActive, currentSort, shopby, setType, categoryId, activeTab });
67
+
68
+ const { error, loading, nonSportCardsSets, categoryUrlSuffix, categoryUrlKey, productType, filteredNonSportCardsSets, availableGroups, category } = talonProps;
69
+
70
+ console.log(filteredNonSportCardsSets)
71
+
72
+ if (loading && !nonSportCardsSets)
73
+ return <NonSportCardsSetsShimmer />;
74
+ if (error && !nonSportCardsSets) return <ErrorView />;
75
+
76
+ if (!nonSportCardsSets && !loading && !error) {
77
+ return <NonSportCardsSetsShimmer />;
78
+ }
79
+
80
+ const setsLengthArr = [];
81
+
82
+ const newNonSportCardsSets = searchQuery ? filteredNonSportCardsSets : nonSportCardsSets;
83
+
84
+ // useEffect(() => {
85
+ if (newNonSportCardsSets && newNonSportCardsSets.length) {
86
+ newNonSportCardsSets.map((setRelease, index) => {
87
+ const { group, sets } = setRelease;
88
+
89
+ setsLengthArr[group] = sets.length
90
+ })
91
+ }
92
+ // }, [nonSportCardsSets])
93
+
94
+ if (nonSportCardsSets && nonSportCardsSets.length) {
95
+ nonSportCardsSets.map((setRelease, index) => {
96
+ const { group, sets } = setRelease;
97
+ // if (active == 'all' || active != "all" && active == group) {
98
+ if (sets.length) {
99
+ sets.map((set, index) => {
100
+ if (set.sc_league) {
101
+ if (!availableLeagues.includes(set.sc_league)) {
102
+ availableLeagues.push(set.sc_league)
103
+ }
104
+ }
105
+ })
106
+ }
107
+ // }
108
+ })
109
+ }
110
+
111
+ const splitToNChunks = (array, n) => {
112
+ let result = [];
113
+ for (let i = n; i > 0; i--) {
114
+ result.push(array.splice(0, Math.ceil(array.length / i)));
115
+ }
116
+ return result;
117
+ }
118
+
119
+ let shopbyUrl = "release";
120
+
121
+ const { search } = useLocation();
122
+
123
+ let filterSearchArr = search ? search.split('&') : [];
124
+ filterSearchArr = filterSearchArr.filter(function(data) {
125
+ return !data.includes('shopby');
126
+ })
127
+ let filterSearch = filterSearchArr.join('&')
128
+
129
+ if (!filterSearch.includes('?')) {
130
+ filterSearch = '?'+filterSearch;
131
+ }
132
+
133
+ let additionalFilter = '';
134
+
135
+ const setRelases = newNonSportCardsSets && newNonSportCardsSets.length && newNonSportCardsSets.map((setRelease, index) => {
136
+ const { group, sets } = setRelease;
137
+
138
+ const setsResult = [];
139
+
140
+ if (sets.length) {
141
+ sets.map((set, index) => {
142
+ const { set_name, option_id, release_year } = set;
143
+
144
+ // const categoryUrl = resourceUrl(
145
+ // `/${category?.url_path}${categoryUrlSuffix || ''}?sc_${category?.url_key}_${shopbyUrl}[filter]=${set_name},${option_id}`
146
+ // );
147
+ const filter = 'nsc_' + category?.url_key + '_' + shopbyUrl + '[filter]=' + set_name + ',' + option_id;
148
+ const params = filterSearch ? filterSearch + '&' + filter + additionalFilter : '?' + filter + additionalFilter;
149
+
150
+ const categoryUrl = resourceUrl(
151
+ `/${category.url_path}${categoryUrlSuffix || ''}${params}`
152
+ );
153
+
154
+ setsResult.push(<li className='list-none'>
155
+ <Link to={categoryUrl} className="hover_bg-darkblue-900 hover_text-white w-full block text-[14px] py-[2px] px-2">
156
+ {set_name}
157
+ </Link>
158
+ </li>)
159
+ })
160
+ }
161
+
162
+ let setsResultSplitted = [];
163
+ if (active == group || newNonSportCardsSets.length == 1) {
164
+ setsResultSplitted = splitToNChunks(setsResult, 3);
165
+ }
166
+
167
+ return (
168
+ <>
169
+ {active == "all" && newNonSportCardsSets.length > 1 ?
170
+ <div className={cn('singles_group-wrapper mb-4 px-2 inline-block', classes.singlesGroupWrapper)}>
171
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' >
172
+ {group}
173
+ </div>
174
+ <div className={cn('singles_item-list flex flex-col')}>{setsResult}</div>
175
+ </div> : ''}
176
+ {active == group || newNonSportCardsSets.length == 1 ? setsResultSplitted && setsResultSplitted.length && setsResultSplitted.map((setsResult, index) =>
177
+ <div key={index} className={cn('singles_group-wrapper mb-4 px-2 inline-block', classes.singlesGroupWrapper)}>
178
+ {index == 0 ? <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2'>{group}</div> :
179
+ <div className='singles_item_group_letter text-xl font-semibold pb-1 mb-2' style={{"marginTop":"35px"}}></div>}
180
+ <div className={cn('singles_item-list flex flex-col')}>{setsResult}</div>
181
+ </div>
182
+ )
183
+ : ''}
184
+ </>
185
+ );
186
+ });
187
+
188
+ const handleActive = (val) => {
189
+ setActive(val);
190
+
191
+ setSearchQuery('')
192
+ }
193
+
194
+ const handleActiveTab = (val) => {
195
+ setActiveTab(val);
196
+ setSearchQuery('')
197
+ }
198
+
199
+ const handleActiveFilter = (val) => {
200
+ setActiveFilter(val);
201
+
202
+ setActive('all');
203
+
204
+ setSearchQuery('')
205
+ }
206
+
207
+ const handleSearchQuery = (val) => {
208
+ setSearchQuery(val)
209
+ setActive('all')
210
+ }
211
+
212
+ let brandName = brandsFilter ? brandsFilter.split(',')[0] : '';
213
+
214
+ let title = "By Release/Set";
215
+
216
+ if (setType && setType == "Inserts") {
217
+ title = "Insert Sets";
218
+ }
219
+
220
+ return (
221
+ <Fragment>
222
+ <StoreTitle>{title}</StoreTitle>
223
+ <Breadcrumbs categoryId={categoryId} customPage={title} />
224
+ {shopby != "release_year" && productType != "expansion_sets" && <h1 className='mx-auto relative block text-xl font-bold text-center pt-10 pb-4'>
225
+ {title}
226
+ </h1>}
227
+ <ul className={classes.nav}>
228
+ {availableGroups.map((group, index) => (
229
+ <li key={index} className={classes.nav_item}>
230
+ <button
231
+ onClick={() => {
232
+ handleActive(group)
233
+ }}
234
+ >
235
+ {active == group ? <b>{group}</b> : group}
236
+ </button>
237
+ </li>
238
+ ))}
239
+ <li className={classes.nav_item}>
240
+ <button
241
+ onClick={() => {
242
+ handleActive('all')
243
+ }}
244
+ >
245
+ {active == 'all' ? <b>All</b> : 'All'}
246
+ </button>
247
+ </li>
248
+ </ul>
249
+ <div className='border border-gray-100 px-6'>
250
+ {nonSportCardsSets ? (
251
+ <div
252
+ className={classes.toolbar}
253
+ >
254
+ <div style={{"width":"35%"}}><ArraySearchInput active={active} searchQuery={searchQuery} placeholder="Search sets..." isOpen={true} setSearchQuery={handleSearchQuery} /></div>
255
+ {/* <CustomSortBy sortProps={sortProps} availableSortMethods={availableSortBy} /> */}
256
+ </div>
257
+ ) : ''}
258
+ <Divider className="mb-5 px-4 mt-5" />
259
+ <section className='singles-container'>
260
+ <div className={cn('singles-wrapper block -mx-4', classes.singlesWrapper)}>
261
+ {newNonSportCardsSets && newNonSportCardsSets.length ? setRelases : (searchQuery ? <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>No sets found for <b>{searchQuery}</b> search query.</div> : <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>No sets found.</div>)}
262
+ </div>
263
+ </section>
264
+ </div>
265
+ </Fragment>
266
+ );
267
+ return '';
268
+ }
269
+
270
+ export default NonSportCardsSets;
@@ -0,0 +1,76 @@
1
+ .nav {
2
+ composes: flex from global;
3
+ composes: flex-wrap from global;
4
+ margin: 50px 0 30px 0;
5
+ composes: gap-[10px] from global;
6
+ }
7
+
8
+ .nav_item {
9
+ composes: px-4 from global;
10
+ composes: py-2 from global;
11
+ composes: transition-colors from global;
12
+ composes: duration-150 from global;
13
+ composes: border from global;
14
+ composes: border-solid from global;
15
+ composes: leading-normal from global;
16
+ composes: text-base from global;
17
+ composes: text-colorDefault from global;
18
+ composes: bg-white from global;
19
+ composes: border-gray-100 from global;
20
+ border-radius: 5px;
21
+ }
22
+
23
+ .toolbar {
24
+ composes: relative from global;
25
+ composes: ml-2xs from global;
26
+ display: flex;
27
+ justify-content: space-between;
28
+ margin-top: 20px;
29
+ }
30
+
31
+ .tabs {
32
+ composes: flex from global;
33
+ composes: flex-wrap from global;
34
+ composes: mt-3 from global;
35
+ composes: gap-[15px] from global;
36
+ margin-bottom: 30px;
37
+ }
38
+
39
+ .tabs_item {
40
+ composes: px-4 from global;
41
+ composes: py-2 from global;
42
+ composes: transition-colors from global;
43
+ composes: duration-150 from global;
44
+ composes: border from global;
45
+ composes: border-solid from global;
46
+ composes: leading-normal from global;
47
+ composes: text-base from global;
48
+ composes: text-colorDefault from global;
49
+ composes: bg-white from global;
50
+ composes: border-gray-100 from global;
51
+ border-radius: 5px;
52
+ }
53
+
54
+ .singlesWrapper {
55
+ column-count: 1;
56
+ display: flex;
57
+ width: 100%;
58
+ flex-wrap: wrap;
59
+ flex-direction: row;
60
+ }
61
+
62
+ .singlesGroupWrapper {
63
+ width: 100%;
64
+ }
65
+
66
+ @media screen and (min-width: 768px) {
67
+ .singlesGroupWrapper {
68
+ width: 50%;
69
+ }
70
+ }
71
+
72
+ @media screen and (min-width: 1023px) {
73
+ .singlesGroupWrapper {
74
+ width: 33.33%;
75
+ }
76
+ }
@@ -0,0 +1,50 @@
1
+ import React from 'react';
2
+ import { shape, string } from 'prop-types';
3
+ import { useStyle } from '@magento/venia-ui/lib/classify';
4
+
5
+ import Shimmer from '@magento/venia-ui/lib/components/Shimmer';
6
+ import defaultClasses from './nonSportCardsSets.module.css';
7
+ import cn from 'classnames';
8
+ import Divider from '@riosst100/pwa-marketplace/src/components/Divider';
9
+
10
+ const NonSportCardsSets = props => {
11
+ const classes = useStyle(defaultClasses, props.classes);
12
+
13
+ return (
14
+ <>
15
+ <h1 className='mx-auto relative block text-xl font-bold text-center pt-10 pb-4'><Shimmer width="25%" height="6vh" /></h1>
16
+ <div className='border border-gray-100 px-6'>
17
+ <center>
18
+ <section className='single_list-indexing-container relative m-auto pt-5'>
19
+ <Shimmer width="95%" height="6vh" />
20
+ </section>
21
+ </center>
22
+ <Divider className="mb-5 px-4" />
23
+ <section className='singles-container'>
24
+ <div className={cn('singles-wrapper block -mx-4', classes.singlesWrapper)}>
25
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
26
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
27
+ </div>
28
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
29
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
30
+ </div>
31
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
32
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
33
+ </div>
34
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
35
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
36
+ </div>
37
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
38
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
39
+ </div>
40
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
41
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' ><Shimmer width="95%" height="100vh" /></div>
42
+ </div>
43
+ </div>
44
+ </section>
45
+ </div>
46
+ </>
47
+ );
48
+ };
49
+
50
+ export default NonSportCardsSets;
@@ -214,6 +214,13 @@ const ShopBy = props => {
214
214
  setSearchQuery('')
215
215
  }
216
216
 
217
+ // let availableSortBy = [
218
+ // {
219
+ // 'label': 'All (A-Z)',
220
+ // 'value': 'all'
221
+ // }
222
+ // ];
223
+
217
224
  let availableSortBy = [
218
225
  {
219
226
  'label': 'All (A-Z)',
@@ -239,7 +246,7 @@ const ShopBy = props => {
239
246
  <CustomSortBy sortProps={sortProps} availableSortMethods={availableSortBy} />
240
247
  </div>
241
248
  ) : ''}
242
- {shopby != "lego_age_level" && productType != "expansion-sets" ? (
249
+ {shopby != "trains_gauge" && shopby != "vehicles_scale" && shopby != "lego_theme" && shopby != "lego_subtheme" && shopby != "lego_interest" && shopby != "lego_age_level" && productType != "expansion-sets" ? (
243
250
  <>
244
251
  <section className='single_list-indexing-container relative m-auto pt-5'>
245
252
  <ul className='flex gap-2 justify-center flex-wrap'>
@@ -0,0 +1,2 @@
1
+ export { default } from './shopByVehicles';
2
+ export { default as ShopByVehiclesShimmer } from './shopByVehicles.shimmer';