gatsby-matrix-theme 44.0.1 → 45.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 +52 -0
- package/package.json +2 -2
- package/src/components/atoms/cards/comparison-table/table/index.js +1 -2
- package/src/components/atoms/cards/operator-card/template-four/index.js +2 -2
- package/src/components/atoms/cards/operator-card/template-four/template-four.test.js +7 -10
- package/src/components/atoms/cards/operator-card/template-one/index.js +2 -2
- package/src/components/atoms/cards/operator-card/template-one/template-one.test.js +1 -4
- package/src/components/atoms/cards/operator-card/template-three/index.js +2 -2
- package/src/components/atoms/cards/operator-card/template-three/template-three.test.js +7 -10
- package/src/components/atoms/cards/operator-card/template-two/index.js +2 -2
- package/src/components/atoms/cards/operator-card/template-two/template-two.test.js +6 -9
- package/src/components/atoms/cards/popup-card/index.js +2 -2
- package/src/components/atoms/statistics-counter/index.js +3 -1
- package/src/components/molecules/header/variants/payment/template-five/index.js +1 -4
- package/src/components/molecules/header/variants/payment/template-four/index.js +1 -4
- package/src/components/molecules/header/variants/payment/template-one-three/index.js +1 -4
- package/src/components/molecules/header/variants/payment/template-two/index.js +1 -4
- package/src/components/molecules/header/variants/slot/template-one/index.js +1 -4
- package/src/components/molecules/header/variants/slot/template-one/template-one.stories.js +1 -1
- package/src/components/molecules/header/variants/slot/template-one/templateone.test.js +1 -1
- package/src/components/molecules/header/variants/slot/template-two/index.js +1 -3
- package/src/components/molecules/header/variants/slot/template-two/template-two.stories.js +1 -1
- package/src/components/molecules/header/variants/slot/template-two/templatetwo.test.js +1 -1
- package/src/components/molecules/operator-details/index.js +2 -11
- package/src/components/molecules/operator-details/operator-details.stories.js +1 -1
- package/src/components/molecules/operator-details/operator-details.test.js +1 -1
- package/src/components/molecules/operator-exclusive/index.js +1 -1
- package/src/components/molecules/operator-summary/template-one/index.js +3 -5
- package/src/components/molecules/operator-summary/template-two/index.js +1 -1
- package/src/components/molecules/sportstake/lotto-module/index.js +2 -7
- package/src/components/molecules/sportstake/lotto-module/winning-numbers/index.js +0 -20
- package/src/components/molecules/sportstake/lotto-module/winning-numbers/lotto.module.scss +0 -13
- package/src/components/molecules/toplist/row/variant-one.js +1 -1
- package/src/gatsby-core-theme/components/molecules/header/index.js +1 -3
- package/src/gatsby-core-theme/components/molecules/main/index.js +1 -1
- package/src/gatsby-core-theme/components/pages/body/index.js +1 -0
- package/src/gatsby-core-theme/styles/utils/variables/_main.scss +4 -0
- package/src/helpers/statistics-counter.js +1 -1
- package/storybook/public/{251.d28bc7da.iframe.bundle.js → 251.c87ec048.iframe.bundle.js} +4 -4
- package/storybook/public/{251.d28bc7da.iframe.bundle.js.map → 251.c87ec048.iframe.bundle.js.map} +1 -1
- package/storybook/public/943.7c05ec0f.iframe.bundle.js +1 -0
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.e5ce0e4f.iframe.bundle.js +1 -0
- package/storybook/public/project.json +1 -1
- package/storybook/public/{runtime~main.a176b461.iframe.bundle.js → runtime~main.b60950da.iframe.bundle.js} +1 -1
- package/tests/factories/modules/matrix/card.factory.js +4 -4
- package/tests/factories/modules/toplist.factory.js +27 -27
- package/tests/factories/pages/operator.factory.js +1 -1
- package/tests/factories/pages/payment.factory.js +1 -1
- package/storybook/public/943.5f9a812c.iframe.bundle.js +0 -1
- package/storybook/public/main.8fce2273.iframe.bundle.js +0 -1
- /package/storybook/public/{251.d28bc7da.iframe.bundle.js.LICENSE.txt → 251.c87ec048.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,55 @@
|
|
|
1
|
+
# [45.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v44.0.2...v45.0.0) (2024-06-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add isRGpage prop ([48dae68](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/48dae68ec61e3c8636d387dd93a1e9330dee4e95))
|
|
7
|
+
* get latest changes from master ([0fa2f18](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0fa2f18f3133510092a43a676e75e6ac17e230e5))
|
|
8
|
+
* remove button cta from winning numbers ([d02658e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d02658e59b4c86a4c29c4ac220d250c940b7d9f1))
|
|
9
|
+
* remove operator from lottotable and rolleover ([4796b78](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4796b78ad71e9f71dc62fc1205951da19db07c77))
|
|
10
|
+
* tests ([4d3d976](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4d3d976e94adb8a7d56c391240b60f440ba1e3df))
|
|
11
|
+
* tests ([a212654](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a212654d44c0067375ef9621efa9ff37bfde8b36))
|
|
12
|
+
* tests ([e1fa528](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e1fa52842f5a5d4f0b5817556c65e258db93c821))
|
|
13
|
+
* tests ([ec0bff4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ec0bff4c99f61300692b6b18d57365a80c59dd22))
|
|
14
|
+
* tests ([060150f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/060150f31105ce1deca5f12045b40e2577ad9b3b))
|
|
15
|
+
* toplist ([f040061](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f040061a7a32f9a2d60f9caea106ea9b6ea1b392))
|
|
16
|
+
* toplist ([02b2e58](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/02b2e58bc362c11c802f23d5533ba1a5d2003e76))
|
|
17
|
+
* update isRGpage ([a46f8de](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a46f8de67c711653c48418cd94832107b19d04f7))
|
|
18
|
+
* update matrix version ([8a6d1fe](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8a6d1fe1243ee5d5dd1131914ba713611ce50042))
|
|
19
|
+
* update theme ([76e25a5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/76e25a59f7c4f50b4a7e91b859058fc6d38bcb2a))
|
|
20
|
+
* update with matrix theme ([364ca96](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/364ca96d232a0ff8ad0a8ce8d41265a3e992f579))
|
|
21
|
+
* updated references for operator logo ([0a4e55f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0a4e55f22696186be426c3864f1cff4d60602021))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Code Refactoring
|
|
25
|
+
|
|
26
|
+
* changes to content module lists ([eabc5b3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/eabc5b344924e2e9625bfe955e9e4384a2be59bb))
|
|
27
|
+
* remove temp ([cb0009b](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/cb0009b76c5820d3f482662d005a1152aee84ebc))
|
|
28
|
+
* temp ([32afe57](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/32afe57c4ce99cea381b3240f77a43ec5ae27656))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Config
|
|
32
|
+
|
|
33
|
+
* update theme ([beec73e](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/beec73e7af5794bd132c78b86d4800e084ada492))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
* Merge branch 'tm-4293-improvements-rg-template' into 'master' ([a71a79c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a71a79cf0745d5330a81e458e7eb6d06e59af492))
|
|
37
|
+
* Merge branch 'tm-4487-lotto-pages' into 'master' ([4cfeb34](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4cfeb34cde2df34b3b832f98d67501d80e7df3c9))
|
|
38
|
+
* Merge branch 'tm-4451-lists' into 'master' ([445dafb](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/445dafb629c8d4a322e6fa67c9239a4f08c8791e))
|
|
39
|
+
* Merge branch 'master' into tm-4451-lists ([efa0384](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/efa0384ec62cf3fc9230f3bea48715502f33c800))
|
|
40
|
+
* Merge branch 'tm-4429-operator-sanitze' into 'master' ([1fe0bc7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1fe0bc71cbb66a5ac9224ea14d0c1be7d785fcf8))
|
|
41
|
+
* Merge branch 'master' into tm-4451-lists ([8b4ae41](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8b4ae41386d59c6fc6e8da086f163b39a989752b))
|
|
42
|
+
|
|
43
|
+
## [44.0.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v44.0.1...v44.0.2) (2024-06-18)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Bug Fixes
|
|
47
|
+
|
|
48
|
+
* fix issue with counters when no page data available ([84bae30](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/84bae30616de3a8ea45e94b28847de37ef3d4798))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
* Merge branch 'tm-4327-stats' into 'master' ([42ccc46](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/42ccc46d6fa35b258527352cf6742d01ad2c021d))
|
|
52
|
+
|
|
1
53
|
## [44.0.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v44.0.0...v44.0.1) (2024-06-17)
|
|
2
54
|
|
|
3
55
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "45.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": "33.0
|
|
28
|
+
"gatsby-core-theme": "33.1.0",
|
|
29
29
|
"gatsby-plugin-sharp": "^5.11.0",
|
|
30
30
|
"gatsby-transformer-sharp": "^5.11.0",
|
|
31
31
|
"prop-types": "15.7.2",
|
|
@@ -83,8 +83,7 @@ export default function ComparisonTable({
|
|
|
83
83
|
const CustomComponent = rowData.customComponent;
|
|
84
84
|
return <CustomComponent key={key} operator={item} />;
|
|
85
85
|
}
|
|
86
|
-
const imageObject =
|
|
87
|
-
item?.relation?.standardised_logo_url_object || item?.relation?.logo_url_object;
|
|
86
|
+
const imageObject = item?.relation?.logo;
|
|
88
87
|
const itemName = item?.relation?.name;
|
|
89
88
|
|
|
90
89
|
switch (heading) {
|
|
@@ -37,7 +37,7 @@ const TemplateFour = ({
|
|
|
37
37
|
}`}
|
|
38
38
|
>
|
|
39
39
|
<OperatorDetails
|
|
40
|
-
item={item}
|
|
40
|
+
item={item?.relation}
|
|
41
41
|
showReviewLink={false}
|
|
42
42
|
costumeStyle={styles.operatorDetails}
|
|
43
43
|
imageWidth={width}
|
|
@@ -100,7 +100,7 @@ TemplateFour.propTypes = {
|
|
|
100
100
|
name: PropTypes.string,
|
|
101
101
|
path: PropTypes.string,
|
|
102
102
|
status: PropTypes.string,
|
|
103
|
-
|
|
103
|
+
logo: PropTypes.shape({
|
|
104
104
|
filename: PropTypes.string,
|
|
105
105
|
}),
|
|
106
106
|
}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { render, cleanup, waitFor
|
|
2
|
+
import { render, cleanup, waitFor } from '@testing-library/react';
|
|
3
3
|
import { getSampleOperatorCards } from 'gatsby-core-theme/tests/factories/modules/card.factory';
|
|
4
4
|
import TemplateFour from './index';
|
|
5
5
|
|
|
@@ -32,17 +32,14 @@ describe('TemplateFour component', () => {
|
|
|
32
32
|
const func = require('gatsby-core-theme/src/helpers/device-detect');
|
|
33
33
|
func.isNativeImageLazyLoadingSupported = jest.fn(() => true);
|
|
34
34
|
|
|
35
|
-
const { getByText } = render(<TemplateFour {...props} />);
|
|
35
|
+
const { getByText, container } = render(<TemplateFour {...props} />);
|
|
36
36
|
|
|
37
37
|
await waitFor(() => {
|
|
38
|
-
const img =
|
|
39
|
-
expect(img).toBeVisible();
|
|
40
|
-
expect(img).toHaveAttribute(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
);
|
|
44
|
-
expect(img).toHaveAttribute('width', '88');
|
|
45
|
-
expect(img).toHaveAttribute('height', '88');
|
|
38
|
+
const img = container.getElementsByClassName('image');
|
|
39
|
+
expect(img[0]).toBeVisible();
|
|
40
|
+
expect(img[0]).toHaveAttribute('src', 'https://cdn.images.com/1680183185/wildz.svg');
|
|
41
|
+
expect(img[0]).toHaveAttribute('width', '88');
|
|
42
|
+
expect(img[0]).toHaveAttribute('height', '88');
|
|
46
43
|
expect(getByText(relation.name)).toBeTruthy();
|
|
47
44
|
});
|
|
48
45
|
});
|
|
@@ -55,7 +55,7 @@ const TemplateOne = ({
|
|
|
55
55
|
}`}
|
|
56
56
|
>
|
|
57
57
|
<OperatorDetails
|
|
58
|
-
item={item}
|
|
58
|
+
item={item?.relation}
|
|
59
59
|
showReviewLink={false}
|
|
60
60
|
costumeStyle={styles.operatorDetails}
|
|
61
61
|
imageWidth={operatorLogoWidth}
|
|
@@ -175,7 +175,7 @@ TemplateOne.propTypes = {
|
|
|
175
175
|
terms_and_conditions_text_enabled: PropTypes.string,
|
|
176
176
|
}),
|
|
177
177
|
status: PropTypes.string,
|
|
178
|
-
|
|
178
|
+
logo: PropTypes.shape({
|
|
179
179
|
filename: PropTypes.string,
|
|
180
180
|
}),
|
|
181
181
|
selling_points: PropTypes.shape([]),
|
|
@@ -37,10 +37,7 @@ describe('TemplateOne component', () => {
|
|
|
37
37
|
await waitFor(() => {
|
|
38
38
|
const img = container.getElementsByClassName('image');
|
|
39
39
|
expect(img[0]).toBeVisible();
|
|
40
|
-
expect(img[0]).toHaveAttribute(
|
|
41
|
-
'src',
|
|
42
|
-
'https://cdn.images.com/1656339756/casumo-casino-logo.svg'
|
|
43
|
-
);
|
|
40
|
+
expect(img[0]).toHaveAttribute('src', 'https://cdn.images.com/1680183185/wildz.svg');
|
|
44
41
|
expect(img[0]).toHaveAttribute('width', '88');
|
|
45
42
|
expect(img[0]).toHaveAttribute('height', '88');
|
|
46
43
|
expect(getByText(relation.name)).toBeTruthy();
|
|
@@ -41,7 +41,7 @@ const TemplateThree = ({
|
|
|
41
41
|
}`}
|
|
42
42
|
>
|
|
43
43
|
<OperatorDetails
|
|
44
|
-
item={item}
|
|
44
|
+
item={item?.relation}
|
|
45
45
|
showReviewLink={false}
|
|
46
46
|
costumeStyle={styles.operatorDetails}
|
|
47
47
|
imageWidth={operatorLogoWidth}
|
|
@@ -124,7 +124,7 @@ TemplateThree.propTypes = {
|
|
|
124
124
|
name: PropTypes.string,
|
|
125
125
|
path: PropTypes.string,
|
|
126
126
|
status: PropTypes.string,
|
|
127
|
-
|
|
127
|
+
logo: PropTypes.shape({
|
|
128
128
|
filename: PropTypes.string,
|
|
129
129
|
}),
|
|
130
130
|
}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { render, cleanup, waitFor
|
|
2
|
+
import { render, cleanup, waitFor } from '@testing-library/react';
|
|
3
3
|
import { getSampleOperatorCards } from 'gatsby-core-theme/tests/factories/modules/card.factory';
|
|
4
4
|
import TemplateThree from './index';
|
|
5
5
|
|
|
@@ -32,17 +32,14 @@ describe('TemplateThree component', () => {
|
|
|
32
32
|
const func = require('gatsby-core-theme/src/helpers/device-detect');
|
|
33
33
|
func.isNativeImageLazyLoadingSupported = jest.fn(() => true);
|
|
34
34
|
|
|
35
|
-
const { getByText } = render(<TemplateThree {...props} />);
|
|
35
|
+
const { getByText, container } = render(<TemplateThree {...props} />);
|
|
36
36
|
|
|
37
37
|
await waitFor(() => {
|
|
38
|
-
const img =
|
|
39
|
-
expect(img).toBeVisible();
|
|
40
|
-
expect(img).toHaveAttribute(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
);
|
|
44
|
-
expect(img).toHaveAttribute('width', '88');
|
|
45
|
-
expect(img).toHaveAttribute('height', '88');
|
|
38
|
+
const img = container.getElementsByClassName('image');
|
|
39
|
+
expect(img[0]).toBeVisible();
|
|
40
|
+
expect(img[0]).toHaveAttribute('src', 'https://cdn.images.com/1680183185/wildz.svg');
|
|
41
|
+
expect(img[0]).toHaveAttribute('width', '88');
|
|
42
|
+
expect(img[0]).toHaveAttribute('height', '88');
|
|
46
43
|
expect(getByText(relation.name)).toBeTruthy();
|
|
47
44
|
});
|
|
48
45
|
});
|
|
@@ -49,7 +49,7 @@ const TemplateTwo = ({
|
|
|
49
49
|
}`}
|
|
50
50
|
>
|
|
51
51
|
<OperatorDetails
|
|
52
|
-
item={item}
|
|
52
|
+
item={item?.relation}
|
|
53
53
|
showReviewLink={false}
|
|
54
54
|
costumeStyle={styles.operatorDetails}
|
|
55
55
|
imageWidth={operatorLogoWidth}
|
|
@@ -157,7 +157,7 @@ TemplateTwo.propTypes = {
|
|
|
157
157
|
terms_and_conditions_text_enabled: PropTypes.string,
|
|
158
158
|
}),
|
|
159
159
|
status: PropTypes.string,
|
|
160
|
-
|
|
160
|
+
logo: PropTypes.shape({
|
|
161
161
|
filename: PropTypes.string,
|
|
162
162
|
}),
|
|
163
163
|
}),
|
|
@@ -32,17 +32,14 @@ describe('TemplateTwo component', () => {
|
|
|
32
32
|
const func = require('gatsby-core-theme/src/helpers/device-detect');
|
|
33
33
|
func.isNativeImageLazyLoadingSupported = jest.fn(() => true);
|
|
34
34
|
|
|
35
|
-
const { getByText } = render(<TemplateTwo {...props} />);
|
|
35
|
+
const { getByText, container } = render(<TemplateTwo {...props} />);
|
|
36
36
|
|
|
37
37
|
await waitFor(() => {
|
|
38
|
-
const img =
|
|
39
|
-
expect(img).toBeVisible();
|
|
40
|
-
expect(img).toHaveAttribute(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
);
|
|
44
|
-
expect(img).toHaveAttribute('width', '88');
|
|
45
|
-
expect(img).toHaveAttribute('height', '88');
|
|
38
|
+
const img = container.getElementsByClassName('image');
|
|
39
|
+
expect(img[0]).toBeVisible();
|
|
40
|
+
expect(img[0]).toHaveAttribute('src', 'https://cdn.images.com/1680183185/wildz.svg');
|
|
41
|
+
expect(img[0]).toHaveAttribute('width', '88');
|
|
42
|
+
expect(img[0]).toHaveAttribute('height', '88');
|
|
46
43
|
expect(getByText(relation.name)).toBeTruthy();
|
|
47
44
|
});
|
|
48
45
|
});
|
|
@@ -28,7 +28,7 @@ const PopupCard = ({
|
|
|
28
28
|
const operatorName = item.name;
|
|
29
29
|
const oneLiner = item?.one_liners?.main?.one_liner;
|
|
30
30
|
const tnc = item?.extra_fields?.terms_and_conditions_text_enabled;
|
|
31
|
-
const imageObject = item?.
|
|
31
|
+
const imageObject = item?.logo;
|
|
32
32
|
|
|
33
33
|
return (
|
|
34
34
|
<div className={styles?.popupCard || ''}>
|
|
@@ -89,7 +89,7 @@ PopupCard.propTypes = {
|
|
|
89
89
|
links: PropTypes.shape({
|
|
90
90
|
main: PropTypes.string,
|
|
91
91
|
}),
|
|
92
|
-
|
|
92
|
+
logo: PropTypes.shape({
|
|
93
93
|
alt: PropTypes.string,
|
|
94
94
|
}),
|
|
95
95
|
review_link: PropTypes.string,
|
|
@@ -43,7 +43,9 @@ const StatisticsCounter = ({ page, module }) => {
|
|
|
43
43
|
}
|
|
44
44
|
) || '-';
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
// eslint-disable-next-line no-restricted-globals
|
|
47
|
+
const updatedVal = isNaN(value) ? 0 : value;
|
|
48
|
+
const component = componentToUse ? componentToUse(updatedVal, getStart(updatedVal)) : false;
|
|
47
49
|
|
|
48
50
|
return (
|
|
49
51
|
<div className={styles.gridItem || ''}>
|
|
@@ -94,10 +94,7 @@ const TemplateOneThree = ({
|
|
|
94
94
|
{headerBonus && (
|
|
95
95
|
<div className={styles.templateFiveCta}>
|
|
96
96
|
<OperatorBanner
|
|
97
|
-
logo={
|
|
98
|
-
headerBonus?.value?.standardised_logo_url_object ||
|
|
99
|
-
headerBonus?.value?.logo_url_object
|
|
100
|
-
}
|
|
97
|
+
logo={headerBonus?.value?.logo}
|
|
101
98
|
operator={headerBonus?.value}
|
|
102
99
|
template={pageTemplate}
|
|
103
100
|
/>
|
|
@@ -53,10 +53,7 @@ const TemplateFour = ({
|
|
|
53
53
|
</div>
|
|
54
54
|
{headerBonus && (
|
|
55
55
|
<OperatorBanner
|
|
56
|
-
logo={
|
|
57
|
-
headerBonus?.value?.standardised_logo_url_object ||
|
|
58
|
-
headerBonus?.value?.logo_url_object
|
|
59
|
-
}
|
|
56
|
+
logo={headerBonus?.value?.logo}
|
|
60
57
|
operator={headerBonus?.value}
|
|
61
58
|
template={pageTemplate}
|
|
62
59
|
/>
|
|
@@ -125,10 +125,7 @@ const TemplateOneThree = ({
|
|
|
125
125
|
{headerBonus && (
|
|
126
126
|
<div className={template !== 'template_three' ? styles.templateOneCta : styles.cta}>
|
|
127
127
|
<OperatorBanner
|
|
128
|
-
logo={
|
|
129
|
-
headerBonus?.value?.standardised_logo_url_object ||
|
|
130
|
-
headerBonus?.value?.logo_url_object
|
|
131
|
-
}
|
|
128
|
+
logo={headerBonus?.value?.logo}
|
|
132
129
|
operator={headerBonus?.value}
|
|
133
130
|
template={pageTemplate}
|
|
134
131
|
/>
|
|
@@ -98,10 +98,7 @@ const TemplateTwo = ({
|
|
|
98
98
|
</div>
|
|
99
99
|
{headerBonus && (
|
|
100
100
|
<OperatorBanner
|
|
101
|
-
logo={
|
|
102
|
-
headerBonus?.value?.standardised_logo_url_object ||
|
|
103
|
-
headerBonus?.value?.logo_url_object
|
|
104
|
-
}
|
|
101
|
+
logo={headerBonus?.value?.logo}
|
|
105
102
|
operator={headerBonus?.value}
|
|
106
103
|
template={pageTemplate}
|
|
107
104
|
/>
|
|
@@ -59,10 +59,7 @@ export default function SlotHeader({
|
|
|
59
59
|
)}
|
|
60
60
|
{headerBonus && (
|
|
61
61
|
<OperatorBanner
|
|
62
|
-
logo={
|
|
63
|
-
headerBonus?.value?.standardised_logo_url_object ||
|
|
64
|
-
headerBonus?.value?.logo_url_object
|
|
65
|
-
}
|
|
62
|
+
logo={headerBonus?.value?.logo}
|
|
66
63
|
operator={headerBonus?.value}
|
|
67
64
|
template={page?.template}
|
|
68
65
|
/>
|
|
@@ -38,7 +38,7 @@ describe('summary component', () => {
|
|
|
38
38
|
one_liner: '20 Free Spins No Deposit Bonus + 300% & 555 Spins Welcome Bonus',
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
|
-
|
|
41
|
+
logo: {
|
|
42
42
|
filename: '1651670485/davincis-gold-casino-logo.png',
|
|
43
43
|
},
|
|
44
44
|
links: { main: 'test' },
|
|
@@ -44,9 +44,7 @@ const TemplateTwo = ({ page, image, width = '259', height = '259' }) => {
|
|
|
44
44
|
</div>
|
|
45
45
|
{headerBonus && (
|
|
46
46
|
<OperatorBanner
|
|
47
|
-
logo={
|
|
48
|
-
headerBonus?.value?.standardised_logo_url_object || headerBonus?.value?.logo_url_object
|
|
49
|
-
}
|
|
47
|
+
logo={headerBonus?.value?.logo}
|
|
50
48
|
operator={headerBonus?.value}
|
|
51
49
|
template={page?.template}
|
|
52
50
|
/>
|
|
@@ -38,7 +38,7 @@ describe('summary component', () => {
|
|
|
38
38
|
one_liner: '20 Free Spins No Deposit Bonus + 300% & 555 Spins Welcome Bonus',
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
|
-
|
|
41
|
+
logo: {
|
|
42
42
|
filename: '1651670485/davincis-gold-casino-logo.png',
|
|
43
43
|
},
|
|
44
44
|
links: { main: 'test' },
|
|
@@ -51,14 +51,8 @@ const OperatorDetails = ({
|
|
|
51
51
|
const hasRibbons = typeof ribbons !== 'undefined' && ribbons.length > 0;
|
|
52
52
|
const trackerType = tracker.toLowerCase().replace(' ', '_');
|
|
53
53
|
|
|
54
|
-
const image =
|
|
55
|
-
item?.standardised_logo_url_object ||
|
|
56
|
-
item?.logo_url_object ||
|
|
57
|
-
item?.relation?.standardised_logo_url_object ||
|
|
58
|
-
item?.relation?.logo_url_object;
|
|
59
|
-
|
|
54
|
+
const image = item?.logo;
|
|
60
55
|
const reviewPath = item?.review_link ? item?.review_link : item?.path || null;
|
|
61
|
-
|
|
62
56
|
const rating = item?.rating || item?.relation?.rating;
|
|
63
57
|
|
|
64
58
|
// eslint-disable-next-line react/prop-types
|
|
@@ -184,12 +178,9 @@ OperatorDetails.propTypes = {
|
|
|
184
178
|
relation: PropTypes.shape({
|
|
185
179
|
name: PropTypes.string,
|
|
186
180
|
rating: PropTypes.string,
|
|
187
|
-
standardised_logo_url_object: PropTypes.shape({}),
|
|
188
|
-
logo_url_object: PropTypes.shape({}),
|
|
189
181
|
status: PropTypes.string,
|
|
190
182
|
}),
|
|
191
|
-
|
|
192
|
-
logo_url_object: PropTypes.shape({}),
|
|
183
|
+
logo: PropTypes.shape({}),
|
|
193
184
|
|
|
194
185
|
authorName: PropTypes.string,
|
|
195
186
|
authorPath: PropTypes.string,
|
|
@@ -22,7 +22,7 @@ export default {
|
|
|
22
22
|
name: 'Sample Operator Name',
|
|
23
23
|
rating: '5',
|
|
24
24
|
review_link: '/path',
|
|
25
|
-
|
|
25
|
+
logo: { filename: '1680183185/wildz.svg' },
|
|
26
26
|
author: { name: 'John Doe', profile_page_path: 'path', image: '1675685947/ellipse-1.png' },
|
|
27
27
|
},
|
|
28
28
|
},
|
|
@@ -20,7 +20,7 @@ const Banner = ({ bonus, template, closeButtonIcon = true, width = '48', height
|
|
|
20
20
|
? module_title.split(splitBy)
|
|
21
21
|
: bonus?.value?.one_liners?.main?.one_liner.split('+');
|
|
22
22
|
const { translations } = useContext(Context) || {};
|
|
23
|
-
const imageObject = value?.
|
|
23
|
+
const imageObject = value?.logo;
|
|
24
24
|
const tracker = isMobileDevice() ? 'mobbanner' : 'banner';
|
|
25
25
|
const [closed, setClosed] = useState(false);
|
|
26
26
|
|
|
@@ -35,11 +35,9 @@ const TemplateOne = ({
|
|
|
35
35
|
const operatorData = operatorDetails[0];
|
|
36
36
|
const operatorSummary = operatorDetails[1];
|
|
37
37
|
|
|
38
|
-
const {
|
|
38
|
+
const { logo, name } = operatorData;
|
|
39
39
|
const author = page.reviewer_id ? page?.reviewer : null;
|
|
40
|
-
const img = operatorImg
|
|
41
|
-
? standardised_logo_url_object?.filename || logo_url_object?.filename
|
|
42
|
-
: author?.image;
|
|
40
|
+
const img = operatorImg ? logo?.filename : author?.image;
|
|
43
41
|
const title = generatePlaceholderString(
|
|
44
42
|
translate(translations, 'expert_casino_review_title', 'Expert Casino Review'),
|
|
45
43
|
translations,
|
|
@@ -87,7 +85,7 @@ const TemplateOne = ({
|
|
|
87
85
|
)}
|
|
88
86
|
</div>
|
|
89
87
|
<OperatorBanner
|
|
90
|
-
logo={
|
|
88
|
+
logo={logo}
|
|
91
89
|
operator={operatorData}
|
|
92
90
|
template={page?.template}
|
|
93
91
|
module="operator_summary"
|
|
@@ -35,7 +35,7 @@ const TemplateTwo = ({
|
|
|
35
35
|
const operatorSummary = operatorDetails[1];
|
|
36
36
|
|
|
37
37
|
const { name } = operatorData;
|
|
38
|
-
const imageObject = operatorData?.
|
|
38
|
+
const imageObject = operatorData?.logo;
|
|
39
39
|
const author = page.reviewer_id ? page?.reviewer : null;
|
|
40
40
|
const img = operatorImg ? imageObject : author?.image;
|
|
41
41
|
|
|
@@ -20,13 +20,8 @@ const LottoModule = ({ serverData, page }) => {
|
|
|
20
20
|
template={template}
|
|
21
21
|
operator={operator}
|
|
22
22
|
/>
|
|
23
|
-
<Rollover data={draw} lotteryName={draw.lottery} template={template}
|
|
24
|
-
<LottoTable
|
|
25
|
-
data={draw}
|
|
26
|
-
lotteryName={draw.lottery}
|
|
27
|
-
template={template}
|
|
28
|
-
operator={operator}
|
|
29
|
-
/>
|
|
23
|
+
<Rollover data={draw} lotteryName={draw.lottery} template={template} />
|
|
24
|
+
<LottoTable data={draw} lotteryName={draw.lottery} template={template} />
|
|
30
25
|
</div>
|
|
31
26
|
))
|
|
32
27
|
);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import OperatorCta from 'gatsby-core-theme/src/components/atoms/button/operator-cta';
|
|
4
3
|
import { prettyTracker, translate } from 'gatsby-core-theme/src/helpers/getters';
|
|
5
4
|
import { Context } from 'gatsby-core-theme/src/context/MainProvider';
|
|
6
5
|
import keygen from 'gatsby-core-theme/src/helpers/keygen';
|
|
@@ -52,25 +51,6 @@ const WinningNumbers = ({ data, template, operator = null }) => {
|
|
|
52
51
|
/>
|
|
53
52
|
</div>
|
|
54
53
|
{getWinningNumbers()}
|
|
55
|
-
{operator && (
|
|
56
|
-
<div className={styles.btnContainer}>
|
|
57
|
-
<OperatorCta
|
|
58
|
-
module="lotto"
|
|
59
|
-
operator={operator}
|
|
60
|
-
pageTemplate={template}
|
|
61
|
-
translationsObj={{
|
|
62
|
-
active: { translationKey: 'play_now', defaultValue: 'Play Now' },
|
|
63
|
-
not_recommended: {
|
|
64
|
-
translationKey: 'not_recommended',
|
|
65
|
-
defaultValue: 'Not Recommended',
|
|
66
|
-
},
|
|
67
|
-
coming_soon: { translationKey: 'coming_soon', defaultValue: 'Soon Available' },
|
|
68
|
-
inactive: { translationKey: 'inactive', defaultValue: 'Not Accepting New Players' },
|
|
69
|
-
blacklisted: { translationKey: 'blacklisted', defaultValue: 'Blacklisted' },
|
|
70
|
-
}}
|
|
71
|
-
/>
|
|
72
|
-
</div>
|
|
73
|
-
)}
|
|
74
54
|
</div>
|
|
75
55
|
<div className={styles.informationBlock}>
|
|
76
56
|
<div className={styles.logoContainer}>
|
|
@@ -63,19 +63,6 @@
|
|
|
63
63
|
color: var(--lotto-winning-numbers-bonus-text-color, #ececf6);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.btnContainer {
|
|
67
|
-
> a {
|
|
68
|
-
height: 4.8rem;
|
|
69
|
-
font-weight: 700;
|
|
70
|
-
font-size: 2rem;
|
|
71
|
-
line-height: 3rem;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@include min(tablet) {
|
|
75
|
-
max-width: 20rem;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
66
|
.informationBlock {
|
|
80
67
|
display: flex;
|
|
81
68
|
border-radius: 8px;
|
|
@@ -129,7 +129,7 @@ Row.propTypes = {
|
|
|
129
129
|
pro_3: PropTypes.string,
|
|
130
130
|
}),
|
|
131
131
|
// eslint-disable-next-line react/forbid-prop-types
|
|
132
|
-
|
|
132
|
+
logo: PropTypes.object,
|
|
133
133
|
// eslint-disable-next-line react/forbid-prop-types
|
|
134
134
|
logo_url_object: PropTypes.object,
|
|
135
135
|
|
|
@@ -87,9 +87,7 @@ export default function Header({ section, numOfStarsRating = 5, showAuthor }) {
|
|
|
87
87
|
relation: pageSection?.page?.relation || {},
|
|
88
88
|
name: pageSection?.page?.title || pageSection?.page?.relation?.name,
|
|
89
89
|
ribbons: pageSection?.page?.relation?.ribbons || [],
|
|
90
|
-
image:
|
|
91
|
-
pageSection?.page?.relation?.standardised_logo_url_object ||
|
|
92
|
-
pageSection?.page?.relation?.logo_url_object,
|
|
90
|
+
image: pageSection?.page?.relation?.logo,
|
|
93
91
|
featureImg: pageSection?.page?.featured_image_object,
|
|
94
92
|
extraFields: pageSection?.page?.extra_fields || {},
|
|
95
93
|
numOfStars: starratings,
|
|
@@ -169,7 +169,7 @@ const Main = ({
|
|
|
169
169
|
falseVotes={page?.false_votes}
|
|
170
170
|
pageId={page?.id}
|
|
171
171
|
casinoTitle={page?.relation ? page?.relation.name : page?.title}
|
|
172
|
-
operatorImg={page?.relation?.
|
|
172
|
+
operatorImg={page?.relation?.logo}
|
|
173
173
|
/>
|
|
174
174
|
</Suspense>
|
|
175
175
|
)}
|
|
@@ -62,6 +62,7 @@ function Body({ pageContext, children, excludeTemplateInPopup = [], serverData }
|
|
|
62
62
|
section={isRGpage ? rgNavigation : navigation}
|
|
63
63
|
searchIcon="../../../../../../images/search.svg"
|
|
64
64
|
menu="main_menu"
|
|
65
|
+
disableSearch={isRGpage}
|
|
65
66
|
options={{
|
|
66
67
|
mobile: {
|
|
67
68
|
animation: 'collapseFull',
|
|
@@ -302,4 +302,8 @@
|
|
|
302
302
|
--stats-item-value-label-font-weight: 400;
|
|
303
303
|
--stats-item-value-label-line-height: 1.6rem;
|
|
304
304
|
--stats-max-width: var(--main-container-max);
|
|
305
|
+
|
|
306
|
+
// Content Module
|
|
307
|
+
--content-list-padding: 0 1.6rem 1.6rem 5.2rem;
|
|
308
|
+
--content-list-last-padding: 0;
|
|
305
309
|
}
|