gatsby-matrix-theme 52.0.27 → 52.0.29
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 +34 -0
- package/package.json +2 -2
- package/src/components/atoms/cards/comparison-table/table/index.js +2 -1
- package/src/components/atoms/cards/operator-card/template-four/index.js +2 -0
- package/src/components/atoms/cards/operator-card/template-one/index.js +3 -0
- package/src/components/atoms/cards/operator-card/template-three/index.js +4 -3
- package/src/components/atoms/cards/operator-card/template-two/index.js +1 -0
- package/src/components/atoms/cards/popup-card/index.js +1 -1
- package/src/components/atoms/recommended-operators/index.js +8 -2
- package/src/components/molecules/header/variants/operator/template-five/index.js +2 -2
- package/src/components/molecules/header/variants/operator/template-four/index.js +2 -2
- package/src/components/molecules/header/variants/operator/template-three/index.js +2 -2
- package/src/components/molecules/operator-details/index.js +23 -25
- package/src/components/molecules/sportstake/lotto-module/winning-numbers/index.js +11 -4
- package/src/components/molecules/toplist/row/variant-one.js +1 -0
- package/src/components/molecules/wagering-calculator/index.js +1 -0
- package/src/gatsby-core-theme/components/molecules/header/index.js +1 -1
- package/src/gatsby-core-theme/components/molecules/module/index.js +4 -3
- package/src/gatsby-core-theme/helpers/server-data.js +9 -9
- package/src/helpers/info-grid.js +1 -0
- package/storybook/public/453.6079d28c.iframe.bundle.js +7 -0
- package/storybook/public/{453.03f0eb9c.iframe.bundle.js.map → 453.6079d28c.iframe.bundle.js.map} +1 -1
- package/storybook/public/{776.e03f32a9.iframe.bundle.js → 776.aa2fb07e.iframe.bundle.js} +1 -1
- package/storybook/public/943.6ed0dd8a.iframe.bundle.js +1 -0
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.6bbe39a1.iframe.bundle.js +1 -0
- package/storybook/public/project.json +1 -2
- package/storybook/public/{runtime~main.3e238723.iframe.bundle.js → runtime~main.1f1dfd32.iframe.bundle.js} +1 -1
- package/storybook/public/453.03f0eb9c.iframe.bundle.js +0 -7
- package/storybook/public/943.d49c44ac.iframe.bundle.js +0 -1
- package/storybook/public/main.ce5e09d0.iframe.bundle.js +0 -1
- /package/storybook/public/{453.03f0eb9c.iframe.bundle.js.LICENSE.txt → 453.6079d28c.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
+
## [52.0.29](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.28...v52.0.29) (2024-10-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* build error ([ae10da7](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/ae10da7eca5d9b0165c071c6c85e2cf24550b8dd))
|
|
7
|
+
* env ([2ab4622](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/2ab4622cd0d6a9735d2a27a674f87b5aa575bcd4))
|
|
8
|
+
* error ([aaff1b5](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/aaff1b5c32151e6aa3dc8515a32c4b541029f544))
|
|
9
|
+
* error handling in server data ([143086a](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/143086aa5c0e7682608b418e176e78037f015148))
|
|
10
|
+
* tracking api v3 ([ffa354e](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/ffa354e77d9770c8fc13db9c1893ff55bd305578))
|
|
11
|
+
* typo ([1578ca0](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/1578ca05ea6ab202a0fe0301645bee4179c680b2))
|
|
12
|
+
* update core version ([1ada41d](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/1ada41dd5a7dc5c3abf976a639e4bf563a776d19))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
* Merge branch 'tm-4898-tracking-api-v3' into 'master' ([57031a7](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/57031a7d29a450fdd9cbdff9e358b0438e94faf2))
|
|
16
|
+
|
|
17
|
+
## [52.0.28](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.27...v52.0.28) (2024-10-28)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* more case handled ([ee7da9f](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/ee7da9fc7cbaec71459f6dc8e634cee728a8ef2b))
|
|
23
|
+
* more case handled ([74ef6e5](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/74ef6e590a7990900e430327121405fb167bd9f6))
|
|
24
|
+
* tracking api ([c7ac8a6](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/c7ac8a6d6f47853125cca918d6527730bc34864b))
|
|
25
|
+
* update version ([9fe3097](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/9fe30977fdc2e84b1d5cbf437553ade858a9f5e6))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Config
|
|
29
|
+
|
|
30
|
+
* update theme ([3448e79](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/3448e79cbb8b86feca0ec26bdfbd98ca0fe3fec3))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
* Merge branch 'tm-4898-tracking-api-v2' into 'master' ([8442900](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/8442900fbf61613c458a8f19d64f95319647a998))
|
|
34
|
+
|
|
1
35
|
## [52.0.27](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.26...v52.0.27) (2024-10-24)
|
|
2
36
|
|
|
3
37
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "52.0.
|
|
3
|
+
"version": "52.0.29",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "Matrix Theme NPM Package",
|
|
6
6
|
"author": "",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@react-icons/all-files": "^4.1.0",
|
|
27
27
|
"gatsby": "^5.11.0",
|
|
28
|
-
"gatsby-core-theme": "40.0.
|
|
28
|
+
"gatsby-core-theme": "40.0.21",
|
|
29
29
|
"gatsby-plugin-sharp": "^5.11.0",
|
|
30
30
|
"gatsby-transformer-sharp": "^5.11.0",
|
|
31
31
|
"gatsby-plugin-sitemap": "^6.13.1",
|
|
@@ -107,7 +107,7 @@ export default function ComparisonTable({
|
|
|
107
107
|
<span>{itemName}</span>
|
|
108
108
|
{item?.relation?.status !== 'not_recommended' && (
|
|
109
109
|
<OperatorCta
|
|
110
|
-
module="
|
|
110
|
+
module="comparison_table"
|
|
111
111
|
tracker="main"
|
|
112
112
|
operator={item?.relation}
|
|
113
113
|
translationsObj={{
|
|
@@ -161,6 +161,7 @@ export default function ComparisonTable({
|
|
|
161
161
|
module="comparison_table"
|
|
162
162
|
tracker="main"
|
|
163
163
|
item={item?.relation}
|
|
164
|
+
pageTemplate={tempate}
|
|
164
165
|
itemPosition={index + 1}
|
|
165
166
|
modulePosition={modulePosition}
|
|
166
167
|
/>
|
|
@@ -63,6 +63,7 @@ const TemplateFour = ({
|
|
|
63
63
|
{showBonusForAll ? (
|
|
64
64
|
<BonusTemplate
|
|
65
65
|
module="cards"
|
|
66
|
+
pageTemplate={page?.template}
|
|
66
67
|
welcomeBonus={false}
|
|
67
68
|
item={relation}
|
|
68
69
|
ctaBtn
|
|
@@ -74,6 +75,7 @@ const TemplateFour = ({
|
|
|
74
75
|
!isInactive && (
|
|
75
76
|
<BonusTemplate
|
|
76
77
|
welcomeBonus={false}
|
|
78
|
+
pageTemplate={page?.template}
|
|
77
79
|
item={relation}
|
|
78
80
|
ctaBtn
|
|
79
81
|
tracker="main"
|
|
@@ -89,6 +89,7 @@ const TemplateOne = ({
|
|
|
89
89
|
module="cards"
|
|
90
90
|
item={relation}
|
|
91
91
|
tracker="main"
|
|
92
|
+
pageTemplate={page?.template}
|
|
92
93
|
modulePosition={modulePosition}
|
|
93
94
|
itemPosition={itemPosition}
|
|
94
95
|
/>
|
|
@@ -98,6 +99,7 @@ const TemplateOne = ({
|
|
|
98
99
|
module="cards"
|
|
99
100
|
item={relation}
|
|
100
101
|
tracker="main"
|
|
102
|
+
pageTemplate={page?.template}
|
|
101
103
|
modulePosition={modulePosition}
|
|
102
104
|
itemPosition={itemPosition}
|
|
103
105
|
/>
|
|
@@ -110,6 +112,7 @@ const TemplateOne = ({
|
|
|
110
112
|
item={item}
|
|
111
113
|
page={page}
|
|
112
114
|
featured={false}
|
|
115
|
+
pageTemplate={page?.template}
|
|
113
116
|
modulePosition={modulePosition}
|
|
114
117
|
itemPosition={itemPosition}
|
|
115
118
|
/>
|
|
@@ -39,9 +39,8 @@ const TemplateThree = ({
|
|
|
39
39
|
|
|
40
40
|
return (
|
|
41
41
|
<div
|
|
42
|
-
className={`${styles?.operatorCard || ''} ${
|
|
43
|
-
|
|
44
|
-
}`}
|
|
42
|
+
className={`${styles?.operatorCard || ''} ${ribbons?.length > 0 ? styles?.withRibbon || '' : ''
|
|
43
|
+
}`}
|
|
45
44
|
>
|
|
46
45
|
<OperatorDetails
|
|
47
46
|
item={item?.relation}
|
|
@@ -67,6 +66,7 @@ const TemplateThree = ({
|
|
|
67
66
|
{showBonusForAll ? (
|
|
68
67
|
<BonusTemplate
|
|
69
68
|
module="cards"
|
|
69
|
+
pageTemplate={page?.template}
|
|
70
70
|
item={relation}
|
|
71
71
|
tracker="main"
|
|
72
72
|
modulePosition={modulePosition}
|
|
@@ -76,6 +76,7 @@ const TemplateThree = ({
|
|
|
76
76
|
!isInactive && (
|
|
77
77
|
<BonusTemplate
|
|
78
78
|
module="cards"
|
|
79
|
+
pageTemplate={page?.template}
|
|
79
80
|
item={relation}
|
|
80
81
|
tracker="main"
|
|
81
82
|
modulePosition={modulePosition}
|
|
@@ -43,7 +43,7 @@ const PopupCard = ({
|
|
|
43
43
|
)}
|
|
44
44
|
{showName && <p className={styles?.name || ''}>{operatorName}</p>}
|
|
45
45
|
</div>
|
|
46
|
-
<Bonus module="popup" item={item} tracker={tracker} itemPosition={itemPosition} />
|
|
46
|
+
<Bonus module="popup" item={item} tracker={tracker} itemPosition={itemPosition} pageTemplate={template} />
|
|
47
47
|
<div className={styles?.buttonContainer || ''}>
|
|
48
48
|
<OperatorCta
|
|
49
49
|
tracker={tracker}
|
|
@@ -17,6 +17,7 @@ const RecommendedOperators = ({
|
|
|
17
17
|
title = 'Recommended Casinos:',
|
|
18
18
|
buttonType = 'primary',
|
|
19
19
|
operators,
|
|
20
|
+
pageTemplate,
|
|
20
21
|
tncFixed = false,
|
|
21
22
|
operatorLogoWidth,
|
|
22
23
|
operatorLogoHeight,
|
|
@@ -32,6 +33,7 @@ const RecommendedOperators = ({
|
|
|
32
33
|
<OperatorDetails
|
|
33
34
|
showRating={showRating}
|
|
34
35
|
item={operator}
|
|
36
|
+
template={pageTemplate}
|
|
35
37
|
showAuthor={showAuthor}
|
|
36
38
|
showReviewLink={false}
|
|
37
39
|
costumeStyle={styles.operatorDetails || ''}
|
|
@@ -44,14 +46,15 @@ const RecommendedOperators = ({
|
|
|
44
46
|
<div className={styles.operatorBonus}>
|
|
45
47
|
<PrettyLink
|
|
46
48
|
operator={operator}
|
|
47
|
-
pageTemplate={
|
|
49
|
+
pageTemplate={pageTemplate}
|
|
48
50
|
module="wagering_calculator"
|
|
49
51
|
tracker="main"
|
|
50
52
|
clickedElement="oneliner"
|
|
51
53
|
modulePosition={modulePosition}
|
|
52
54
|
itemPosition={index + 1}
|
|
53
55
|
>
|
|
54
|
-
<Bonus item={operator} tracker="main"
|
|
56
|
+
<Bonus item={operator} module="wagering_calculator" tracker="main" pageTemplate={pageTemplate} modulePosition={modulePosition}
|
|
57
|
+
itemPosition={index + 1} />
|
|
55
58
|
</PrettyLink>
|
|
56
59
|
|
|
57
60
|
<TermsConditions operator={operator} isFixed={tncFixed} />
|
|
@@ -63,6 +66,7 @@ const RecommendedOperators = ({
|
|
|
63
66
|
operator={operator}
|
|
64
67
|
tracker="main"
|
|
65
68
|
buttonType={buttonType}
|
|
69
|
+
pageTemplate={pageTemplate}
|
|
66
70
|
module="wagering_calculator"
|
|
67
71
|
modulePosition={modulePosition}
|
|
68
72
|
itemPosition={index + 1}
|
|
@@ -72,6 +76,7 @@ const RecommendedOperators = ({
|
|
|
72
76
|
{(!showCouponCode || !couponCode) && (
|
|
73
77
|
<OperatorCta
|
|
74
78
|
operator={operator}
|
|
79
|
+
pageTemplate={pageTemplate}
|
|
75
80
|
tracker="main"
|
|
76
81
|
buttonType={buttonType}
|
|
77
82
|
module="wagering_calculator"
|
|
@@ -102,4 +107,5 @@ RecommendedOperators.propTypes = {
|
|
|
102
107
|
operatorLogoWidth: PropTypes.number,
|
|
103
108
|
operatorLogoHeight: PropTypes.number,
|
|
104
109
|
modulePosition: PropTypes.number,
|
|
110
|
+
pageTemplate: PropTypes.string,
|
|
105
111
|
};
|
|
@@ -33,9 +33,9 @@ const TemplateFive = ({
|
|
|
33
33
|
<PrettyLink
|
|
34
34
|
operator={relation}
|
|
35
35
|
pageTemplate={pageTemplate}
|
|
36
|
-
module="
|
|
36
|
+
module="header_operator_logo"
|
|
37
37
|
tracker="main"
|
|
38
|
-
clickedElement="
|
|
38
|
+
clickedElement="operator_logo"
|
|
39
39
|
className="header-gtm logo-cta "
|
|
40
40
|
>
|
|
41
41
|
<LazyImage
|
|
@@ -33,9 +33,9 @@ const TemplateFour = ({
|
|
|
33
33
|
<PrettyLink
|
|
34
34
|
operator={relation}
|
|
35
35
|
pageTemplate={pageTemplate}
|
|
36
|
-
module="
|
|
36
|
+
module="header_operator_logo"
|
|
37
37
|
tracker="main"
|
|
38
|
-
clickedElement="
|
|
38
|
+
clickedElement="operator_logo"
|
|
39
39
|
className="header-gtm logo-cta "
|
|
40
40
|
>
|
|
41
41
|
<LazyImage
|
|
@@ -29,9 +29,9 @@ const TemplateThree = ({
|
|
|
29
29
|
<PrettyLink
|
|
30
30
|
operator={relation}
|
|
31
31
|
pageTemplate={pageTemplate}
|
|
32
|
-
module="
|
|
32
|
+
module="header_operator_logo"
|
|
33
33
|
tracker="main"
|
|
34
|
-
clickedElement="
|
|
34
|
+
clickedElement="operator_logo"
|
|
35
35
|
className="header-gtm logo-cta "
|
|
36
36
|
>
|
|
37
37
|
<LazyImage
|
|
@@ -58,14 +58,14 @@ const OperatorDetails = ({
|
|
|
58
58
|
const rating = item?.rating || item?.relation?.rating;
|
|
59
59
|
|
|
60
60
|
// eslint-disable-next-line react/prop-types
|
|
61
|
-
const Tag = ({ children, classStyle = '' }) =>
|
|
61
|
+
const Tag = ({ children, classStyle = '', clickedElement = "operator_logo" }) =>
|
|
62
62
|
prettyLinkTracker ? (
|
|
63
63
|
<PrettyLink
|
|
64
64
|
operator={item?.relation || item}
|
|
65
65
|
pageTemplate={template}
|
|
66
66
|
module={module}
|
|
67
67
|
tracker={trackerType}
|
|
68
|
-
clickedElement=
|
|
68
|
+
clickedElement={clickedElement}
|
|
69
69
|
className={classStyle}
|
|
70
70
|
modulePosition={modulePosition}
|
|
71
71
|
itemPosition={itemPosition}
|
|
@@ -93,19 +93,18 @@ const OperatorDetails = ({
|
|
|
93
93
|
!contentRibbon &&
|
|
94
94
|
(status === 'active'
|
|
95
95
|
? hasRibbons && (
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
<span className={`${styles.ribbon} ${contentRibbon && styles.contentRibbon}`}>
|
|
97
|
+
{ribbons[0]}
|
|
98
|
+
</span>
|
|
99
|
+
)
|
|
100
100
|
: showNonActiveRibbons && (
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
styles[status] || ''
|
|
101
|
+
<span
|
|
102
|
+
className={`${styles.ribbon} ${contentRibbon && styles.contentRibbon} ${styles[status] || ''
|
|
104
103
|
}`}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
>
|
|
105
|
+
{useTranslate(`${status}_ribbon`, ribbonText[`${status}_ribbon`])}
|
|
106
|
+
</span>
|
|
107
|
+
))}
|
|
109
108
|
</Tag>
|
|
110
109
|
|
|
111
110
|
<div className={styles.details}>
|
|
@@ -113,20 +112,19 @@ const OperatorDetails = ({
|
|
|
113
112
|
contentRibbon &&
|
|
114
113
|
(status === 'active'
|
|
115
114
|
? hasRibbons && (
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
<span className={`${styles.ribbon} ${contentRibbon && styles.contentRibbon}`}>
|
|
116
|
+
{ribbons[0]}
|
|
117
|
+
</span>
|
|
118
|
+
)
|
|
120
119
|
: showNonActiveRibbons && (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
styles[status] || ''
|
|
120
|
+
<span
|
|
121
|
+
className={`${styles.ribbon} ${contentRibbon && styles.contentRibbon} ${styles[status] || ''
|
|
124
122
|
}`}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
<Tag classStyle={`${styles.operatorName} name-cta `}>{itemName}</Tag>
|
|
123
|
+
>
|
|
124
|
+
{useTranslate(`${status}_ribbon`, ribbonText[`${status}_ribbon`])}
|
|
125
|
+
</span>
|
|
126
|
+
))}
|
|
127
|
+
<Tag classStyle={`${styles.operatorName} name-cta `} clickedElement="operator_name">{itemName}</Tag>
|
|
130
128
|
|
|
131
129
|
{(showAuthor || showRating) && (
|
|
132
130
|
<div
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { prettyTracker } from 'gatsby-core-theme/src/helpers/getters';
|
|
4
3
|
import keygen from 'gatsby-core-theme/src/helpers/keygen';
|
|
5
4
|
import HeaderOperatorBaner from 'gatsby-core-theme/src/components/atoms/header-operator-bannner';
|
|
5
|
+
import PrettyLink from "~atoms/pretty-link";
|
|
6
6
|
import useTranslate from '~hooks/useTranslate/useTranslate';
|
|
7
7
|
import { formatDate } from '../../../../../gatsby-core-theme/helpers/lotto';
|
|
8
8
|
import styles from './lotto.module.scss';
|
|
@@ -10,7 +10,6 @@ import styles from './lotto.module.scss';
|
|
|
10
10
|
const WinningNumbers = ({ data, template, operator = null, modulePosition }) => {
|
|
11
11
|
const { balls } = data?.drawDetails || {};
|
|
12
12
|
const imageName = data?.lottery !== 'daily-lotto' ? data?.lottery : 'lotto';
|
|
13
|
-
const prettyLink = prettyTracker(operator, 'main', false, template);
|
|
14
13
|
|
|
15
14
|
const getWinningNumbers = () => (
|
|
16
15
|
<ul className={styles.numbersWrapper}>
|
|
@@ -57,11 +56,19 @@ const WinningNumbers = ({ data, template, operator = null, modulePosition }) =>
|
|
|
57
56
|
<p className={styles.label}>
|
|
58
57
|
{useTranslate(`no_winners`, 'There were no winners this week.')}
|
|
59
58
|
</p>
|
|
60
|
-
<
|
|
59
|
+
<PrettyLink
|
|
60
|
+
operator={operator}
|
|
61
|
+
pageTemplate={template}
|
|
62
|
+
module="lotto_get_ticket"
|
|
63
|
+
modulePosition={modulePosition}
|
|
64
|
+
rel="nofollow noreferrer sponsored"
|
|
65
|
+
clickedElement='lotto_text'
|
|
66
|
+
>
|
|
61
67
|
<p className={styles.linkCta}>
|
|
62
68
|
{useTranslate(`get_tickets`, 'Get your ticket in for the next draw!')}
|
|
63
69
|
</p>
|
|
64
|
-
</
|
|
70
|
+
</PrettyLink>
|
|
71
|
+
|
|
65
72
|
</div>
|
|
66
73
|
</div>
|
|
67
74
|
{operator && (
|
|
@@ -170,6 +170,7 @@ const WageringCalculator = ({
|
|
|
170
170
|
<RecomendedOperators
|
|
171
171
|
title={useTranslate('wagecalc_recommended_casinos', 'Recommeded Casinos for you: ')}
|
|
172
172
|
operators={operators}
|
|
173
|
+
pageTemplate={pageContext?.page?.template}
|
|
173
174
|
modulePosition={modulePosition}
|
|
174
175
|
/>
|
|
175
176
|
)}
|
|
@@ -57,7 +57,7 @@ export default function Header({ section, numOfStarsRating = 5, showAuthor }) {
|
|
|
57
57
|
numOfStars: 5,
|
|
58
58
|
description:
|
|
59
59
|
pageSection.page.description ||
|
|
60
|
-
getSectionExtraField(null, pageSection
|
|
60
|
+
getSectionExtraField(null, pageSection?.page?.sections?.header, 'header_text'),
|
|
61
61
|
};
|
|
62
62
|
switch (pageSection?.page?.page_styles?.short_name) {
|
|
63
63
|
case 'template_two': {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import React, { lazy, Suspense, useContext } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { anchorLink } from 'gatsby-core-theme/src/helpers/strings';
|
|
7
|
-
import {
|
|
7
|
+
import { getSectionExtraField } from 'gatsby-core-theme/src/helpers/getters';
|
|
8
8
|
import Content from 'gatsby-core-theme/src/components/molecules/content';
|
|
9
9
|
import Toplist from 'gatsby-core-theme/src/components/organisms/toplist';
|
|
10
10
|
import Anchor from 'gatsby-core-theme/src/components/organisms/anchor/template-one';
|
|
@@ -215,8 +215,7 @@ const Modules = ({ module, pageContext, index, exclOperator, serverData, moduleP
|
|
|
215
215
|
operator: module?.value,
|
|
216
216
|
logo: module?.value?.logo_url,
|
|
217
217
|
hasLink: true,
|
|
218
|
-
|
|
219
|
-
pageTemplate: page?.template,
|
|
218
|
+
pageTemplate: page?.template,
|
|
220
219
|
isStickyCta: false,
|
|
221
220
|
};
|
|
222
221
|
case 'newsletter':
|
|
@@ -366,6 +365,8 @@ const Modules = ({ module, pageContext, index, exclOperator, serverData, moduleP
|
|
|
366
365
|
isModuleIntroduction={module.module_introduction}
|
|
367
366
|
module={{ value: module.module_introduction }}
|
|
368
367
|
isHomepageFirstModule={homepageFirstModule}
|
|
368
|
+
pageTemplate={page?.template}
|
|
369
|
+
modulePosition={modulePosition}
|
|
369
370
|
/>
|
|
370
371
|
)}
|
|
371
372
|
</>
|
|
@@ -106,12 +106,12 @@ export async function getAPIData(page, url, header, preview) {
|
|
|
106
106
|
'powerball'
|
|
107
107
|
];
|
|
108
108
|
|
|
109
|
-
const containsFixtures = page
|
|
110
|
-
const containsResults = page
|
|
111
|
-
const containsLotto = page
|
|
112
|
-
const conatinsLottoUK49 = page
|
|
109
|
+
const containsFixtures = (page?.categories && page?.categories.filter((category) => category.short_name === 'fixtures')) || [];
|
|
110
|
+
const containsResults = (page?.categories && page?.categories.filter((category) => category.short_name === 'results')) || [];
|
|
111
|
+
const containsLotto = (page?.categories && page?.categories.filter((category) => category.short_name === 'lotto')) || [];
|
|
112
|
+
const conatinsLottoUK49 = (page?.categories && page?.categories.filter(
|
|
113
113
|
(category) => category.short_name === 'lotto_uk_49'
|
|
114
|
-
);
|
|
114
|
+
)) || [];
|
|
115
115
|
let responseFixtures = {};
|
|
116
116
|
let responseResults = {};
|
|
117
117
|
let responseLotto = {};
|
|
@@ -160,7 +160,7 @@ export async function getAPIData(page, url, header, preview) {
|
|
|
160
160
|
responseFixtures = {
|
|
161
161
|
data: Object.assign({}, ...fixtureData.filter(Boolean)),
|
|
162
162
|
};
|
|
163
|
-
}
|
|
163
|
+
}else{ responseFixtures = { data: [] }; }
|
|
164
164
|
|
|
165
165
|
if (containsResults.length >= 1) {
|
|
166
166
|
const filteredArray = page?.sections?.main?.modules.filter(
|
|
@@ -204,7 +204,7 @@ export async function getAPIData(page, url, header, preview) {
|
|
|
204
204
|
responseResults = {
|
|
205
205
|
data: Object.assign({}, ...resultData.filter(Boolean)),
|
|
206
206
|
};
|
|
207
|
-
}
|
|
207
|
+
}else{ responseResults = { data: [] }; }
|
|
208
208
|
|
|
209
209
|
if (containsLotto.length >= 1) {
|
|
210
210
|
const filteredArray = page?.sections?.main?.modules.filter(
|
|
@@ -258,7 +258,7 @@ export async function getAPIData(page, url, header, preview) {
|
|
|
258
258
|
responseLotto = {
|
|
259
259
|
data: responseArray.filter((n) => n),
|
|
260
260
|
};
|
|
261
|
-
}
|
|
261
|
+
}else{ responseLotto = { data: [] }; }
|
|
262
262
|
|
|
263
263
|
if (conatinsLottoUK49.length >= 1) {
|
|
264
264
|
const types = ['lunchtime', 'teatime'];
|
|
@@ -286,7 +286,7 @@ export async function getAPIData(page, url, header, preview) {
|
|
|
286
286
|
tabs:[...responseArray[0].tabs, ...responseArray[1].tabs],
|
|
287
287
|
data: [...responseArray[0].data, ...responseArray[1].data]
|
|
288
288
|
}
|
|
289
|
-
}
|
|
289
|
+
}else{ lottoUK49 = { data: [], tabs: [] }; }
|
|
290
290
|
|
|
291
291
|
return {
|
|
292
292
|
props: {
|
package/src/helpers/info-grid.js
CHANGED