gatsby-matrix-theme 36.0.3 → 37.0.0
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 +33 -0
- package/package.json +2 -2
- package/src/components/atoms/cards/comparison-table/table/index.js +1 -1
- package/src/components/atoms/cards/game-cards/template-five/index.js +4 -5
- package/src/components/atoms/cards/game-cards/template-four/index.js +4 -5
- package/src/components/atoms/cards/game-cards/template-one/index.js +4 -5
- package/src/components/atoms/cards/game-cards/template-three/index.js +4 -5
- package/src/components/atoms/cards/game-cards/template-two/index.js +4 -5
- package/src/components/atoms/cards/operator-card/template-one/index.js +1 -1
- package/src/components/atoms/cards/operator-card/template-three/index.js +1 -1
- package/src/components/atoms/cards/payment-method/template-one/index.js +4 -3
- package/src/components/atoms/cards/payment-method/template-three/index.js +3 -4
- package/src/components/atoms/cards/popup-card/index.js +1 -1
- package/src/components/atoms/feedBackModule/feedback-module.module.scss +1 -4
- package/src/components/atoms/feedBackModule/index.js +5 -5
- package/src/components/atoms/newsletter/form/index.js +3 -1
- package/src/components/atoms/newsletter/privacy&button/index.js +5 -4
- package/src/components/atoms/operator-bonuses/index.js +1 -1
- package/src/components/atoms/table/column/index.js +1 -1
- package/src/components/molecules/cookie-modal/index.js +7 -4
- package/src/components/molecules/game-iframe/game-iframe.test.js +1 -1
- package/src/components/molecules/game-iframe/index.js +5 -4
- package/src/components/molecules/header/variants/default/template-one/index.js +3 -4
- package/src/components/molecules/header/variants/default/template-two/index.js +3 -4
- package/src/components/molecules/horse-calculator/index.js +5 -5
- package/src/components/molecules/operator-exclusive/index.js +1 -1
- package/src/components/molecules/toplist/row/variant-one.js +1 -1
- package/src/components/molecules/toplist/row/variant-one.module.scss +23 -2
- package/src/components/molecules/wagering-calculator/index.js +33 -22
- package/src/components/molecules/wagering-calculator/wagering-calculator.test.js +1 -1
- package/src/gatsby-core-theme/components/organisms/cookie-consent/index.js +6 -5
- package/src/gatsby-core-theme/components/organisms/toplist/list/index.js +4 -7
- package/src/gatsby-core-theme/components/organisms/toplist/list/list.module.scss +1 -1
- package/src/gatsby-core-theme/components/organisms/toplist/list/list.test.js +1 -1
- package/src/gatsby-core-theme/components/organisms/toplist/list/template-two.module.scss +11 -2
- package/storybook/public/238.856d8725.iframe.bundle.js +1 -0
- package/storybook/public/{487.2aa76422.iframe.bundle.js → 487.2d630f0c.iframe.bundle.js} +4 -4
- package/storybook/public/{487.2aa76422.iframe.bundle.js.map → 487.2d630f0c.iframe.bundle.js.map} +1 -1
- package/storybook/public/521.282e4f6f.iframe.bundle.js +1 -0
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.f1d5b1af.iframe.bundle.js +2 -0
- package/storybook/public/{runtime~main.6109448f.iframe.bundle.js → runtime~main.daeb2a8f.iframe.bundle.js} +1 -1
- package/tests/factories/pages/operator.factory.js +8 -0
- package/storybook/public/238.9f02ce8a.iframe.bundle.js +0 -1
- package/storybook/public/521.795f51f4.iframe.bundle.js +0 -1
- package/storybook/public/main.c4df2e68.iframe.bundle.js +0 -2
- /package/storybook/public/{487.2aa76422.iframe.bundle.js.LICENSE.txt → 487.2d630f0c.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook/public/{main.c4df2e68.iframe.bundle.js.LICENSE.txt → main.f1d5b1af.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
# [37.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v36.0.4...v37.0.0) (2023-11-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* cookie consent buttons ([34e4cd8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/34e4cd89375adb57b44d667699a7674e2da15886))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Code Refactoring
|
|
10
|
+
|
|
11
|
+
* add operator image and fix storybook issue ([fe6472f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fe6472f93b20feccc73bd696dee078a4d5208d68))
|
|
12
|
+
* change to tablet view ([39cc3b8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/39cc3b8df89b567900eaf2af5e559b37c16e26b0))
|
|
13
|
+
* changes to toplist tablet view ([0fd3ab7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0fd3ab78d8eb78050aaf6590e3cf0c83be239820))
|
|
14
|
+
* remove temp ([ad18f01](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ad18f01450a7b73ba4a07ad0f8df12c31a07b46d))
|
|
15
|
+
* temp ([1adc1b0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1adc1b0b06b9a3e01e4b40068eb0caf406409168))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
* Merge branch 'tm-3691-toplist' into 'master' ([18bc94d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/18bc94d6f0a1ebf8ed88c6219b5b37655e64101f))
|
|
19
|
+
* Merge branch 'tm-3815-storybook-issue' into 'master' ([93e63af](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/93e63afe94cf9067722fbe5e2c06f973d5107543))
|
|
20
|
+
* Merge branch 'master' into tm-3691-toplist ([9b7a3bd](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9b7a3bdd8c90bd88731082ef8fecb950b1d2cff6))
|
|
21
|
+
|
|
22
|
+
## [36.0.4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v36.0.3...v36.0.4) (2023-11-10)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* button refactoring ([a42bfe9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a42bfe946e32d3405b9e3f2b106da235f6d6397b))
|
|
28
|
+
* conflict ([0e5ca99](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0e5ca9965d34946d9a69d1cf92406240b3ef4c88))
|
|
29
|
+
* updated core theme ([f9dceb7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f9dceb7a0c94740bf8b5271bbfc7c85fea6e9705))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
* Merge branch 'tm-3755-buttons-refactoring' into 'master' ([ff6c6c9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ff6c6c9cdf181cf8f2f2ea51148c7f4a7e9c0eb1))
|
|
33
|
+
|
|
1
34
|
## [36.0.3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v36.0.2...v36.0.3) (2023-11-09)
|
|
2
35
|
|
|
3
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "37.0.0",
|
|
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": "30.0.
|
|
28
|
+
"gatsby-core-theme": "30.0.18",
|
|
29
29
|
"gatsby-plugin-sharp": "^5.11.0",
|
|
30
30
|
"gatsby-plugin-sitemap": "^3.3.0",
|
|
31
31
|
"gatsby-transformer-sharp": "^5.11.0",
|
|
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import { AiOutlineCheckCircle } from '@react-icons/all-files/ai/AiOutlineCheckCircle';
|
|
9
9
|
import { imagePrettyUrl, translate } from 'gatsby-core-theme/src/helpers/getters';
|
|
10
10
|
import LazyImg from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
11
|
-
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta
|
|
11
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
12
12
|
import StarRating from 'gatsby-core-theme/src/components/molecules/star-rating/one-star';
|
|
13
13
|
import ReviewLink from 'gatsby-core-theme/src/components/atoms/review-link';
|
|
14
14
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
translate,
|
|
10
10
|
getAltText,
|
|
11
11
|
} from 'gatsby-core-theme/src/helpers/getters';
|
|
12
|
-
import Button from 'gatsby-core-theme/src/components/atoms/button';
|
|
13
|
-
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta
|
|
12
|
+
import Button from 'gatsby-core-theme/src/components/atoms/button/button';
|
|
13
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
14
14
|
import GatsbyImg from 'gatsby-core-theme/src/hooks/gatsby-img';
|
|
15
15
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
16
16
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
@@ -129,10 +129,9 @@ const TemplateFive = ({
|
|
|
129
129
|
) : (
|
|
130
130
|
<Button
|
|
131
131
|
to={path}
|
|
132
|
-
|
|
133
|
-
btnText={translate(translations, button_text, 'Play now')}
|
|
134
|
-
className={styles.playNow}
|
|
132
|
+
buttonType={!featured ? 'primary' : 'secondary'}
|
|
135
133
|
gtmClass="game-card-gtm btn-cta"
|
|
134
|
+
btnText={translate(translations, button_text, 'Play now')}
|
|
136
135
|
/>
|
|
137
136
|
)}
|
|
138
137
|
</div>
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
translate,
|
|
10
10
|
getAltText,
|
|
11
11
|
} from 'gatsby-core-theme/src/helpers/getters';
|
|
12
|
-
import Button from 'gatsby-core-theme/src/components/atoms/button';
|
|
13
|
-
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta
|
|
12
|
+
import Button from 'gatsby-core-theme/src/components/atoms/button/button';
|
|
13
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
14
14
|
import GatsbyImg from 'gatsby-core-theme/src/hooks/gatsby-img';
|
|
15
15
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
16
16
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
@@ -114,10 +114,9 @@ const TemplateFour = ({
|
|
|
114
114
|
) : (
|
|
115
115
|
<Button
|
|
116
116
|
to={path}
|
|
117
|
-
|
|
118
|
-
btnText={translate(translations, button_text, 'Play now')}
|
|
119
|
-
className={styles.playNow}
|
|
117
|
+
buttonType={!featured ? 'primary' : 'secondary'}
|
|
120
118
|
gtmClass="game-card-gtm btn-cta"
|
|
119
|
+
btnText={translate(translations, button_text, 'Play now')}
|
|
121
120
|
/>
|
|
122
121
|
)}
|
|
123
122
|
</div>
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
translate,
|
|
11
11
|
getAltText,
|
|
12
12
|
} from 'gatsby-core-theme/src/helpers/getters';
|
|
13
|
-
import Button from 'gatsby-core-theme/src/components/atoms/button';
|
|
14
|
-
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta
|
|
13
|
+
import Button from 'gatsby-core-theme/src/components/atoms/button/button';
|
|
14
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
15
15
|
import GatsbyImg from 'gatsby-core-theme/src/hooks/gatsby-img';
|
|
16
16
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
17
17
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
@@ -115,10 +115,9 @@ const TemplateOne = ({
|
|
|
115
115
|
) : (
|
|
116
116
|
<Button
|
|
117
117
|
to={path}
|
|
118
|
-
|
|
119
|
-
btnText={translate(translations, button_text, 'Play now')}
|
|
120
|
-
className={styles.playNow}
|
|
118
|
+
buttonType={!featured ? 'primary' : 'secondary'}
|
|
121
119
|
gtmClass="game-card-gtm btn-cta"
|
|
120
|
+
btnText={translate(translations, button_text, 'Play now')}
|
|
122
121
|
icon={<FaArrowRight title="Right-pointing Arrow Icon" />}
|
|
123
122
|
/>
|
|
124
123
|
)}
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
translate,
|
|
10
10
|
getAltText,
|
|
11
11
|
} from 'gatsby-core-theme/src/helpers/getters';
|
|
12
|
-
import Button from 'gatsby-core-theme/src/components/atoms/button';
|
|
13
|
-
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta
|
|
12
|
+
import Button from 'gatsby-core-theme/src/components/atoms/button/button';
|
|
13
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
14
14
|
import GatsbyImg from 'gatsby-core-theme/src/hooks/gatsby-img';
|
|
15
15
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
16
16
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
@@ -113,10 +113,9 @@ const TemplateThree = ({
|
|
|
113
113
|
) : (
|
|
114
114
|
<Button
|
|
115
115
|
to={path}
|
|
116
|
-
|
|
117
|
-
btnText={translate(translations, button_text, 'Play now')}
|
|
118
|
-
className={styles.playNow}
|
|
116
|
+
buttonType={!featured ? 'primary' : 'secondary'}
|
|
119
117
|
gtmClass="game-card-gtm btn-cta"
|
|
118
|
+
btnText={translate(translations, button_text, 'Play now')}
|
|
120
119
|
/>
|
|
121
120
|
)}
|
|
122
121
|
</div>
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
translate,
|
|
10
10
|
getAltText,
|
|
11
11
|
} from 'gatsby-core-theme/src/helpers/getters';
|
|
12
|
-
import Button from 'gatsby-core-theme/src/components/atoms/button';
|
|
13
|
-
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta
|
|
12
|
+
import Button from 'gatsby-core-theme/src/components/atoms/button/button';
|
|
13
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
14
14
|
import GatsbyImg from 'gatsby-core-theme/src/hooks/gatsby-img';
|
|
15
15
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
16
16
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
@@ -115,10 +115,9 @@ const TemplateTwo = ({
|
|
|
115
115
|
) : (
|
|
116
116
|
<Button
|
|
117
117
|
to={path}
|
|
118
|
-
|
|
119
|
-
btnText={translate(translations, button_text, 'Play now')}
|
|
120
|
-
className={styles.playNow}
|
|
118
|
+
buttonType={!featured ? 'primary' : 'secondary'}
|
|
121
119
|
gtmClass="game-card-gtm btn-cta"
|
|
120
|
+
btnText={translate(translations, button_text, 'Play now')}
|
|
122
121
|
/>
|
|
123
122
|
)}
|
|
124
123
|
</div>
|
|
@@ -10,7 +10,7 @@ import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
|
10
10
|
import Bonus from 'gatsby-core-theme/src/components/molecules/bonus-box/template-one';
|
|
11
11
|
import ReviewLink from 'gatsby-core-theme/src/components/atoms/review-link';
|
|
12
12
|
import Tnc from 'gatsby-core-theme/src/components/molecules/tnc';
|
|
13
|
-
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta
|
|
13
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
14
14
|
import SellingPoints from 'gatsby-core-theme/src/components/atoms/selling-points';
|
|
15
15
|
import OperatorDetails from '../../../../molecules/operator-details';
|
|
16
16
|
import styles from './template-one.module.scss';
|
|
@@ -7,7 +7,7 @@ import { BiDislike } from '@react-icons/all-files/bi/BiDislike';
|
|
|
7
7
|
import { FaArrowRight } from '@react-icons/all-files/fa/FaArrowRight';
|
|
8
8
|
import Bonus from 'gatsby-core-theme/src/components/molecules/bonus-box/template-one';
|
|
9
9
|
import ReviewLink from 'gatsby-core-theme/src/components/atoms/review-link';
|
|
10
|
-
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta
|
|
10
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
11
11
|
import OperatorDetails from '../../../../molecules/operator-details';
|
|
12
12
|
import styles from './template-three.module.scss';
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React, { useContext } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import loadable from '@loadable/component';
|
|
6
|
-
import Button from 'gatsby-core-theme/src/components/atoms/button';
|
|
6
|
+
import Button from 'gatsby-core-theme/src/components/atoms/button/button';
|
|
7
7
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
8
8
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
9
9
|
import {
|
|
@@ -67,13 +67,14 @@ const TemplateOneTwo = ({ item, showSellingPoints = true, width = 150, height =
|
|
|
67
67
|
</div>
|
|
68
68
|
<Button
|
|
69
69
|
to={path}
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
buttonType="primary"
|
|
71
|
+
gtmClass="game-card-gtm btn-cta"
|
|
72
72
|
btnText={
|
|
73
73
|
!showSellingPoints
|
|
74
74
|
? `${translate(translations, 'go_to_review', 'Go To Review')}`
|
|
75
75
|
: `${translate(translations, 'read_review', 'Read Review')}`
|
|
76
76
|
}
|
|
77
|
+
icon={<FaArrowRight title="Right-pointing Arrow Icon" />}
|
|
77
78
|
/>
|
|
78
79
|
</div>
|
|
79
80
|
</>
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import loadable from '@loadable/component';
|
|
6
6
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
7
|
-
import Button from 'gatsby-core-theme/src/components/atoms/button';
|
|
7
|
+
import Button from 'gatsby-core-theme/src/components/atoms/button/button';
|
|
8
8
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
9
9
|
import { getAltText, imagePrettyUrl } from 'gatsby-core-theme/src/helpers/getters';
|
|
10
10
|
import { FaArrowRight } from '@react-icons/all-files/fa/FaArrowRight';
|
|
@@ -53,11 +53,10 @@ const TemplateThree = ({ item, width = 150, height = 150, useOneStarRating = fal
|
|
|
53
53
|
<div className={styles?.excerpt || ''}>
|
|
54
54
|
<SellingPoints sellingPoints={selling_points} />
|
|
55
55
|
</div>
|
|
56
|
-
|
|
57
56
|
<Button
|
|
58
|
-
className={`${styles?.reviewButton || ''} payment-method-card-gtm`}
|
|
59
|
-
primaryColor
|
|
60
57
|
to={path}
|
|
58
|
+
buttonType="primary"
|
|
59
|
+
gtmClass="game-card-gtm btn-cta"
|
|
61
60
|
btnText="Read Review"
|
|
62
61
|
icon={<FaArrowRight title="Right-pointing Arrow Icon" />}
|
|
63
62
|
/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta
|
|
4
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
5
5
|
import { getAltText, imagePrettyUrl } from 'gatsby-core-theme/src/helpers/getters';
|
|
6
6
|
import ReviewLink from 'gatsby-core-theme/src/components/atoms/review-link';
|
|
7
7
|
import Tnc from 'gatsby-core-theme/src/components/molecules/tnc';
|
|
@@ -45,10 +45,7 @@
|
|
|
45
45
|
font-size: 16px;
|
|
46
46
|
line-height: var(--feedbackModule-secondText-anchor-line-height);
|
|
47
47
|
color: var(--color-73);
|
|
48
|
-
|
|
49
|
-
> svg {
|
|
50
|
-
display: none;
|
|
51
|
-
}
|
|
48
|
+
padding: 0;
|
|
52
49
|
}
|
|
53
50
|
}
|
|
54
51
|
.buttonContainer {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useContext, useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import Button from 'gatsby-core-theme/src/components/atoms/button';
|
|
3
|
+
import Button from 'gatsby-core-theme/src/components/atoms/button/button';
|
|
4
4
|
import { translate } from 'gatsby-core-theme/src/helpers/getters';
|
|
5
5
|
import { Context } from 'gatsby-core-theme/src/context/MainProvider';
|
|
6
6
|
import styles from './feedback-module.module.scss';
|
|
@@ -48,7 +48,7 @@ const FeedBackModule = ({ path = 'contact-us' }) => {
|
|
|
48
48
|
)}`}{' '}
|
|
49
49
|
<Button
|
|
50
50
|
btnText={`${translate(translations, 'here_text', 'here')}`}
|
|
51
|
-
|
|
51
|
+
buttonType="none"
|
|
52
52
|
to={path}
|
|
53
53
|
/>
|
|
54
54
|
</p>
|
|
@@ -68,11 +68,11 @@ const FeedBackModule = ({ path = 'contact-us' }) => {
|
|
|
68
68
|
translations,
|
|
69
69
|
'no_second_text',
|
|
70
70
|
'Tell us what you need to know on this topic'
|
|
71
|
-
)}`}
|
|
71
|
+
)}`}
|
|
72
72
|
<Button
|
|
73
|
-
btnText={`${translate(translations, 'here_text', 'here')}`}
|
|
74
|
-
noStyle
|
|
75
73
|
to={path}
|
|
74
|
+
buttonType="none"
|
|
75
|
+
btnText={`${translate(translations, 'here_text', 'here')}`}
|
|
76
76
|
/>
|
|
77
77
|
</p>
|
|
78
78
|
)}
|
|
@@ -116,7 +116,7 @@ const NewsletterForm = ({
|
|
|
116
116
|
.then((response) => response.json())
|
|
117
117
|
.then((data) => setIP(data.IPv4))
|
|
118
118
|
.catch((err) => {
|
|
119
|
-
console.log(`Error ${err}`);
|
|
119
|
+
// console.log(`Error ${err}`);
|
|
120
120
|
});
|
|
121
121
|
};
|
|
122
122
|
|
|
@@ -165,6 +165,7 @@ const NewsletterForm = ({
|
|
|
165
165
|
<>
|
|
166
166
|
<p className={styles?.maintext || ''}>{formTextTranslated.mainText}</p>
|
|
167
167
|
<p
|
|
168
|
+
// eslint-disable-next-line react/no-danger
|
|
168
169
|
dangerouslySetInnerHTML={{ __html: formTextTranslated.subscribeText }}
|
|
169
170
|
className={styles.subscribe}
|
|
170
171
|
/>
|
|
@@ -212,6 +213,7 @@ const NewsletterForm = ({
|
|
|
212
213
|
/>
|
|
213
214
|
)}
|
|
214
215
|
<PrivacyandSuccess
|
|
216
|
+
onclick={() => handelSubmit()}
|
|
215
217
|
loading={setLogading || loading}
|
|
216
218
|
btnText={formTextTranslated.buttonText}
|
|
217
219
|
privacyText={privacyText}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import Button from 'gatsby-core-theme/src/components/atoms/button';
|
|
3
|
+
import Button from 'gatsby-core-theme/src/components/atoms/button/button';
|
|
4
4
|
import styles from './newsletter-privacy&button.module.scss';
|
|
5
5
|
|
|
6
|
-
const PrivacyandSuccess = ({ privacyText, btnText,
|
|
6
|
+
const PrivacyandSuccess = ({ privacyText, btnText, onSubmit = null }) => (
|
|
7
7
|
<div className={styles?.display || ''}>
|
|
8
8
|
{privacyText ? (
|
|
9
|
+
// eslint-disable-next-line react/no-danger
|
|
9
10
|
<p className={styles?.privacytext || ''} dangerouslySetInnerHTML={{ __html: privacyText }} />
|
|
10
11
|
) : null}
|
|
11
|
-
<Button
|
|
12
|
+
<Button btnText={btnText} buttonType="primary" onClick={() => onSubmit()} />
|
|
12
13
|
</div>
|
|
13
14
|
);
|
|
14
15
|
|
|
15
16
|
PrivacyandSuccess.propTypes = {
|
|
16
17
|
privacyText: PropTypes.string,
|
|
17
18
|
btnText: PropTypes.string,
|
|
18
|
-
|
|
19
|
+
onSubmit: PropTypes.func,
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
export default PrivacyandSuccess;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable react/prop-types */
|
|
4
4
|
/* eslint-disable camelcase */
|
|
5
5
|
import React, { useContext } from 'react';
|
|
6
|
-
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta
|
|
6
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
7
7
|
import { Context } from 'gatsby-core-theme/src/context/MainProvider';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import styles from './operator-bonuses.module.scss';
|
|
@@ -7,7 +7,7 @@ import { FaAngleDown } from '@react-icons/all-files/fa/FaAngleDown';
|
|
|
7
7
|
import { imagePrettyUrl } from 'gatsby-core-theme/src/helpers/getters';
|
|
8
8
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
9
9
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
10
|
-
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta
|
|
10
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
11
11
|
import StarRating from 'gatsby-core-theme/src/components/molecules/star-rating';
|
|
12
12
|
import SellingPoints from 'gatsby-core-theme/src/components/atoms/selling-points';
|
|
13
13
|
import Tnc from 'gatsby-core-theme/src/components/molecules/tnc';
|
|
@@ -7,7 +7,7 @@ import { MdClose } from '@react-icons/all-files/md/MdClose';
|
|
|
7
7
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
8
8
|
import { translate } from '~helpers/getters';
|
|
9
9
|
import CategoryContainer from './category/index';
|
|
10
|
-
import Button from '~atoms/button';
|
|
10
|
+
import Button from '~atoms/button/button';
|
|
11
11
|
import LazyImage from '~hooks/lazy-image';
|
|
12
12
|
import styles from './cookie-modal.module.scss';
|
|
13
13
|
|
|
@@ -123,7 +123,8 @@ const CookieModal = ({
|
|
|
123
123
|
onClick={() => handleAcceptCookies()}
|
|
124
124
|
btnText={translate(translations, 'cookie_accept_all_button', 'Accept All Cookies')}
|
|
125
125
|
isInternalLink={false}
|
|
126
|
-
|
|
126
|
+
buttonType="primary"
|
|
127
|
+
buttonSize="m"
|
|
127
128
|
gtmClass="cookie-consent-gtm btn-cta"
|
|
128
129
|
/>
|
|
129
130
|
)}
|
|
@@ -135,7 +136,8 @@ const CookieModal = ({
|
|
|
135
136
|
'I reject Non-Necessary'
|
|
136
137
|
)}
|
|
137
138
|
isInternalLink={false}
|
|
138
|
-
|
|
139
|
+
buttonType="secondary"
|
|
140
|
+
buttonSize="m"
|
|
139
141
|
gtmClass="cookie-consent-gtm btn-cta"
|
|
140
142
|
/>
|
|
141
143
|
</div>
|
|
@@ -186,7 +188,8 @@ const CookieModal = ({
|
|
|
186
188
|
onClick={() => handleAcceptCookies()}
|
|
187
189
|
btnText={translate(translations, 'cookie_confirm_button', 'Confirm my choices')}
|
|
188
190
|
isInternalLink={false}
|
|
189
|
-
|
|
191
|
+
buttonType="primary"
|
|
192
|
+
buttonSize="m"
|
|
190
193
|
gtmClass="cookie-consent-gtm btn-cta"
|
|
191
194
|
/>
|
|
192
195
|
</div>
|
|
@@ -16,7 +16,7 @@ describe('Game Iframe component', () => {
|
|
|
16
16
|
expect(container).toBeTruthy();
|
|
17
17
|
expect(container.querySelector('iframe')).toBeFalsy();
|
|
18
18
|
|
|
19
|
-
const iframeLoadButton = container.querySelector('
|
|
19
|
+
const iframeLoadButton = container.querySelector('a');
|
|
20
20
|
fireEvent.click(iframeLoadButton);
|
|
21
21
|
|
|
22
22
|
await waitFor(() => {
|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
5
5
|
import { imagePrettyUrl } from 'gatsby-core-theme/src/helpers/getters';
|
|
6
6
|
import Iframe from 'gatsby-core-theme/src/components/atoms/iframe';
|
|
7
|
-
import Button from 'gatsby-core-theme/src/components/atoms/button';
|
|
7
|
+
import Button from 'gatsby-core-theme/src/components/atoms/button/button';
|
|
8
8
|
import GatsbyImg from 'gatsby-core-theme/src/hooks/gatsby-img';
|
|
9
9
|
import styles from './game-iframe.module.scss';
|
|
10
10
|
|
|
@@ -53,11 +53,12 @@ const GameIframe = ({ page }) => {
|
|
|
53
53
|
) : (
|
|
54
54
|
<GatsbyImg alt={page.title} filename="default-slot.jpg" />
|
|
55
55
|
)}
|
|
56
|
+
|
|
56
57
|
<Button
|
|
58
|
+
onClick={() => clickHandler()}
|
|
57
59
|
isInternalLink={false}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
gtmClass="game-iframe-gtm btn-cta"
|
|
60
|
+
buttonType="primary"
|
|
61
|
+
buttonSize="m"
|
|
61
62
|
/>
|
|
62
63
|
</div>
|
|
63
64
|
{showIframe && (
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { FaArrowRight } from '@react-icons/all-files/fa/FaArrowRight';
|
|
4
4
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
5
|
-
import Button from 'gatsby-core-theme/src/components/atoms/button';
|
|
5
|
+
import Button from 'gatsby-core-theme/src/components/atoms/button/button';
|
|
6
6
|
import { imagePrettyUrl, getAltText, getExtraField } from 'gatsby-core-theme/src/helpers/getters';
|
|
7
7
|
import styles from './template-one.module.scss';
|
|
8
8
|
|
|
@@ -23,10 +23,9 @@ export default function TemplateOne({ title, description, extraFields, imageObj
|
|
|
23
23
|
{link && (
|
|
24
24
|
<Button
|
|
25
25
|
to={link}
|
|
26
|
-
|
|
26
|
+
buttonType="secondary"
|
|
27
|
+
gtmClass="game-card-gtm btn-cta"
|
|
27
28
|
btnText={link}
|
|
28
|
-
invertColors
|
|
29
|
-
gtmClass="default-header-template-one-gtm btn-cta"
|
|
30
29
|
icon={<FaArrowRight title="Right-pointing Arrow Icon" />}
|
|
31
30
|
/>
|
|
32
31
|
)}
|
|
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { FaArrowRight } from '@react-icons/all-files/fa/FaArrowRight';
|
|
4
4
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
5
|
-
import Button from 'gatsby-core-theme/src/components/atoms/button';
|
|
5
|
+
import Button from 'gatsby-core-theme/src/components/atoms/button/button';
|
|
6
6
|
import {
|
|
7
7
|
imagePrettyUrl,
|
|
8
8
|
getAltText,
|
|
@@ -32,10 +32,9 @@ export default function TemplateTwo({ extraFields, imageObj }) {
|
|
|
32
32
|
{link && (
|
|
33
33
|
<Button
|
|
34
34
|
to={link}
|
|
35
|
-
|
|
36
|
-
btnText={translate(translations, 'online_casino', link)}
|
|
37
|
-
invertColors
|
|
35
|
+
buttonType="secondary"
|
|
38
36
|
gtmClass="default-header-template-two-gtm btn-cta"
|
|
37
|
+
btnText={translate(translations, 'online_casino', link)}
|
|
39
38
|
icon={<FaArrowRight title="Right-pointing Arrow Icon" />}
|
|
40
39
|
/>
|
|
41
40
|
)}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/* eslint-disable no-return-assign */
|
|
5
5
|
/* eslint-disable jsx-a11y/control-has-associated-label */
|
|
6
6
|
import React, { useRef, useState, useEffect, useCallback, useContext } from 'react';
|
|
7
|
-
import Button from 'gatsby-core-theme/src/components/atoms/button';
|
|
7
|
+
import Button from 'gatsby-core-theme/src/components/atoms/button/button';
|
|
8
8
|
import { Context } from 'gatsby-core-theme/src/context/MainProvider';
|
|
9
9
|
import { translate } from 'gatsby-core-theme/src/helpers/getters';
|
|
10
10
|
import {
|
|
@@ -585,11 +585,11 @@ const HorseCalculator = () => {
|
|
|
585
585
|
</div>
|
|
586
586
|
<div className={styles?.ctaContainer || ''}>
|
|
587
587
|
<Button
|
|
588
|
-
|
|
589
|
-
primaryColor={false}
|
|
588
|
+
onClick={() => resetCalculation()}
|
|
590
589
|
btnText={translate(translations, 'reset-calculation', 'Reset Calculation')}
|
|
591
|
-
|
|
592
|
-
|
|
590
|
+
isInternalLink={false}
|
|
591
|
+
buttonType="tertiary"
|
|
592
|
+
buttonSize="m"
|
|
593
593
|
/>
|
|
594
594
|
</div>
|
|
595
595
|
</div>
|
|
@@ -6,7 +6,7 @@ import React, { useContext, useState } from 'react';
|
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import { Context } from 'gatsby-core-theme/src/context/MainProvider';
|
|
8
8
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
9
|
-
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta
|
|
9
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
10
10
|
import { isMobileDevice } from 'gatsby-core-theme/src/helpers/device-detect';
|
|
11
11
|
import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
|
|
12
12
|
import { imagePrettyUrl, translate, getAltText } from '~helpers/getters';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import SellingPoints from 'gatsby-core-theme/src/components/atoms/selling-points';
|
|
6
|
-
import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta
|
|
6
|
+
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
7
7
|
import Tnc from 'gatsby-core-theme/src/components/molecules/tnc';
|
|
8
8
|
import Bonus from 'gatsby-core-theme/src/components/molecules/bonus-box/template-one';
|
|
9
9
|
import CasinoDetails from '../../operator-details';
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.list
|
|
17
|
+
.list,
|
|
18
|
+
.toplist_2 {
|
|
18
19
|
&.rowNoTandC,
|
|
19
20
|
> .container {
|
|
20
21
|
@include min(tablet) {
|
|
@@ -60,9 +61,14 @@
|
|
|
60
61
|
|
|
61
62
|
.grid {
|
|
62
63
|
@include flex-align(stretch, stretch);
|
|
64
|
+
|
|
63
65
|
@include min(tablet) {
|
|
64
66
|
@include flex-align(stretch, space-between);
|
|
65
|
-
|
|
67
|
+
|
|
68
|
+
&.toplist_0,
|
|
69
|
+
&.toplist_1 {
|
|
70
|
+
display: flex !important;
|
|
71
|
+
}
|
|
66
72
|
|
|
67
73
|
> div {
|
|
68
74
|
> a {
|
|
@@ -73,6 +79,21 @@
|
|
|
73
79
|
}
|
|
74
80
|
}
|
|
75
81
|
}
|
|
82
|
+
|
|
83
|
+
@include min(laptop) {
|
|
84
|
+
&.toplist_2 {
|
|
85
|
+
display: flex !important;
|
|
86
|
+
align-items: flex-start;
|
|
87
|
+
|
|
88
|
+
> ul {
|
|
89
|
+
padding: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
> a:last-child {
|
|
93
|
+
align-self: stretch;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
76
97
|
}
|
|
77
98
|
|
|
78
99
|
.container {
|