gatsby-core-theme 40.0.35 → 40.0.37
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,18 @@
|
|
|
1
|
+
## [40.0.37](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.36...v40.0.37) (2024-11-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* remove trim from anchor ([5866c2c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/5866c2cb7bf966b3b83d635cdba89849c4331e5b))
|
|
7
|
+
|
|
8
|
+
## [40.0.36](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.35...v40.0.36) (2024-11-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* fix tests ([ff37177](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ff371775811a2c0ef972faf10f5ef87153b3d19c))
|
|
14
|
+
* remove pageTemplate logjik ([c8396d8](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c8396d82eef96cb5b0450a98b77cfcbba7dac561))
|
|
15
|
+
|
|
1
16
|
## [40.0.35](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.34...v40.0.35) (2024-11-14)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
|
@@ -45,14 +45,14 @@ const OperatorCtaButton = ({
|
|
|
45
45
|
const referer =
|
|
46
46
|
typeof document !== 'undefined' && document?.referrer
|
|
47
47
|
? document.referrer
|
|
48
|
-
: ''
|
|
48
|
+
: '';
|
|
49
|
+
|
|
49
50
|
const prettyLink = `${prettyTracker(
|
|
50
51
|
operator,
|
|
51
52
|
trackerType,
|
|
52
|
-
false
|
|
53
|
-
pageTemplate
|
|
53
|
+
false
|
|
54
54
|
)}`
|
|
55
|
-
|
|
55
|
+
|
|
56
56
|
const translateBtn =
|
|
57
57
|
status && translationsObj[status]
|
|
58
58
|
? // eslint-disable-next-line react-hooks/rules-of-hooks
|
package/src/helpers/getters.mjs
CHANGED
|
@@ -207,17 +207,7 @@ export function prettyTracker(
|
|
|
207
207
|
operator,
|
|
208
208
|
trackerType = "main",
|
|
209
209
|
provider = false,
|
|
210
|
-
|
|
211
|
-
) {
|
|
212
|
-
if (
|
|
213
|
-
pageTemplateName &&
|
|
214
|
-
operator &&
|
|
215
|
-
operator.links &&
|
|
216
|
-
operator.links[pageTemplateName]
|
|
217
|
-
) {
|
|
218
|
-
return generateTrackerLink(operator, pageTemplateName, provider);
|
|
219
|
-
}
|
|
220
|
-
|
|
210
|
+
) {
|
|
221
211
|
if (
|
|
222
212
|
!operator ||
|
|
223
213
|
!operator.short_name ||
|
|
@@ -138,19 +138,6 @@ describe('Getters Helper', () => {
|
|
|
138
138
|
expect(Getters.prettyTracker({ short_name: 'short', relation_type: 'game' })).toEqual(
|
|
139
139
|
'/no/visit/short'
|
|
140
140
|
);
|
|
141
|
-
expect(
|
|
142
|
-
Getters.prettyTracker(
|
|
143
|
-
{
|
|
144
|
-
type: 'casino',
|
|
145
|
-
relation_type: 'casino',
|
|
146
|
-
short_name: 'short',
|
|
147
|
-
links: { 'page-template-test': 'granular' },
|
|
148
|
-
},
|
|
149
|
-
'non_main',
|
|
150
|
-
false,
|
|
151
|
-
'page-template-test'
|
|
152
|
-
)
|
|
153
|
-
).toEqual('/no/visit/short/page-template-test');
|
|
154
141
|
});
|
|
155
142
|
|
|
156
143
|
test('getBonus()', () => {
|