gatsby-core-theme 40.0.38 → 40.0.39
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [40.0.39](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.38...v40.0.39) (2024-11-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added featured events to tournaments page ([4451573](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/44515735ff6357e4e7cc01e3ebcd15f83f1d2838))
|
|
7
|
+
* bonus header ribbon ([2dc1e2c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2dc1e2cf7df2d16d4a798e4b9816f0bc24d00720))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
* Merge branch 'bonus_header_ribon' into 'master' ([47b7af1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/47b7af13a9239c2d566396a2bbf146a1ed7e7cf8))
|
|
11
|
+
|
|
1
12
|
## [40.0.38](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.37...v40.0.38) (2024-11-20)
|
|
2
13
|
|
|
3
14
|
|
package/package.json
CHANGED
|
@@ -284,10 +284,16 @@ export function processCardsV2(
|
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
export function processBonus(module, relations) {
|
|
287
|
+
export function processBonus(module, relations, data) {
|
|
288
|
+
|
|
288
289
|
const object = sanitizeOperatorData(
|
|
289
|
-
cloneDeep(relations.operator[module.value])
|
|
290
|
+
cloneDeep(relations.operator[module.value]),
|
|
291
|
+
[],
|
|
292
|
+
[],
|
|
293
|
+
[],
|
|
294
|
+
data
|
|
290
295
|
);
|
|
296
|
+
|
|
291
297
|
if (object.bonus) {
|
|
292
298
|
const removeFields =
|
|
293
299
|
settings.remove_bonus_data[process.env.GATSBY_SITE_NAME] ||
|
|
@@ -477,7 +483,7 @@ export function processModule(
|
|
|
477
483
|
} else if (module.name === "content") {
|
|
478
484
|
processContentModule(module, translations, relationData, content);
|
|
479
485
|
} else if (module.name === "bonus") {
|
|
480
|
-
processBonus(module, relations);
|
|
486
|
+
processBonus(module, relations, data);
|
|
481
487
|
} else if (module.name === "top_list") {
|
|
482
488
|
processTopListModule(
|
|
483
489
|
module,
|
|
@@ -158,6 +158,7 @@ export function addSportsDataToPage(sportsData, page, themeType) {
|
|
|
158
158
|
);
|
|
159
159
|
// eslint-disable-next-line prefer-destructuring
|
|
160
160
|
relation.event = getSortedEvents(relation.tournaments, sportsData.events)[0];
|
|
161
|
+
relation.featured_events = sportsData.featured_events.soccer || null;
|
|
161
162
|
// relation.events = findEvents(relation.tournaments, sportsData.events);
|
|
162
163
|
relation.providers = providersArray.filter(
|
|
163
164
|
(provider) => provider.sports_data.soccer !== null
|