gatsby-matrix-theme 13.0.4 → 13.0.6
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 +32 -0
- package/package.json +1 -1
- package/src/components/molecules/header/variants/author/assets/socials/index.js +1 -1
- package/src/components/molecules/header/variants/author/template-four/index.js +6 -4
- package/src/components/molecules/header/variants/author/template-four/template-four.module.scss +21 -12
- package/src/components/molecules/header/variants/author/template-one/template-one.module.scss +12 -10
- package/src/components/molecules/header/variants/author/template-three/index.js +7 -5
- package/src/components/molecules/header/variants/author/template-three/template-three.module.scss +31 -20
- package/src/components/molecules/header/variants/author/template-two/index.js +7 -5
- package/src/components/molecules/header/variants/author/template-two/template-two.module.scss +16 -13
- package/src/components/molecules/header/variants/operator/template-five/template-five.module.scss +1 -1
- package/src/components/molecules/header/variants/operator/template-four/template-four.module.scss +2 -0
- package/src/components/molecules/header/variants/operator/template-three/template-three.module.scss +2 -1
- package/src/constants/ratings-constant.js +10 -10
- package/src/gatsby-core-theme/components/molecules/header/index.js +8 -5
- package/src/gatsby-core-theme/components/molecules/module/index.js +1 -0
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.8e1a414a.iframe.bundle.js +1 -0
- package/tests/factories/pages/operator.factory.js +5 -0
- package/storybook/public/main.b6d41d26.iframe.bundle.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
## [13.0.6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v13.0.5...v13.0.6) (2023-02-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add extraprop on module molecule component ([06087f5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/06087f510fd46fe6c9142d1021175c7fecec2eda))
|
|
7
|
+
* author template social icons ([29aab2f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/29aab2f2c9977fc81b8abe9409dd7d97ce0ba4a4))
|
|
8
|
+
* get the latest matrix changes ([67398f1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/67398f13b38ab10a80609c25015d7c6c12b234d2))
|
|
9
|
+
* make style ([2d6f2b6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2d6f2b650eb7b95b4734c3f7d3af37b8d912192f))
|
|
10
|
+
* ratings in operators ([1711774](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1711774583a9e4aeab259cd5e5ce4250c76c1b30))
|
|
11
|
+
* templates styling ([1ef1319](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1ef1319c47f627733ae5a58c885c729ef03118d9))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Code Refactoring
|
|
15
|
+
|
|
16
|
+
* remove author header template biography line limit ([b5da008](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b5da00868d3b71e8053f57bee4d1785784d2bb12))
|
|
17
|
+
* update author header variants max width ([16542a6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/16542a6c31b8247da37ad67e9e2a914679f64646))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([12ebd65](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/12ebd65777e859d6c5628e53dce9df9adce75296))
|
|
21
|
+
* Merge branch 'tm-3290-overlapping-sticky-banners' into 'master' ([2108846](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/21088466d80955f4ed024dbf088d64316759b7ff))
|
|
22
|
+
* Merge branch 'tm-3271-author-header-update' into 'master' ([ac3acaa](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ac3acaad8f1bae1a0e01d451e15b348967a7a680))
|
|
23
|
+
|
|
24
|
+
## [13.0.5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v13.0.4...v13.0.5) (2023-02-09)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* page author relation in header ([0e64099](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0e64099037d706eb95a1175e4b96eb7d8bcfcd21))
|
|
30
|
+
* page author relation in header ([322312d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/322312d65e027a9b10cf74bc1d266346c88646ae))
|
|
31
|
+
* page author relation in header ([4be6d62](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4be6d62033e952494a75174897b60fd1152bc98f))
|
|
32
|
+
|
|
1
33
|
## [13.0.4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v13.0.3...v13.0.4) (2023-02-09)
|
|
2
34
|
|
|
3
35
|
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ export default function Socials({ className = '', author }) {
|
|
|
18
18
|
].filter((socialLink) => socialLink.link);
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
|
-
socialLinks.length && (
|
|
21
|
+
socialLinks.length > 0 && (
|
|
22
22
|
<div className={`${className} ${styles.socials}`}>
|
|
23
23
|
{socialLinks.map((socialLink) => (
|
|
24
24
|
// eslint-disable-next-line jsx-a11y/control-has-associated-label
|
|
@@ -9,11 +9,13 @@ import styles from './template-four.module.scss';
|
|
|
9
9
|
export default function TemplateFour({ author, icons }) {
|
|
10
10
|
return (
|
|
11
11
|
<div className={styles.container}>
|
|
12
|
-
<Portrait className={styles.portrait} author={author} />
|
|
13
12
|
<div>
|
|
14
|
-
<
|
|
15
|
-
<div
|
|
16
|
-
|
|
13
|
+
<Portrait className={styles.portrait} author={author} />
|
|
14
|
+
<div>
|
|
15
|
+
<Name className={styles.name} name={author.name} icon={icons?.verify} />
|
|
16
|
+
<div className={styles.title}>{author.author_title}</div>
|
|
17
|
+
<Socials author={author} />
|
|
18
|
+
</div>
|
|
17
19
|
</div>
|
|
18
20
|
</div>
|
|
19
21
|
);
|
package/src/components/molecules/header/variants/author/template-four/template-four.module.scss
CHANGED
|
@@ -1,27 +1,36 @@
|
|
|
1
1
|
.container {
|
|
2
|
-
margin: 4.4rem max(1.6rem, 50% - 37.5rem / 2) 0;
|
|
3
|
-
padding: 4rem;
|
|
4
|
-
max-width: 37.5rem;
|
|
5
|
-
@include flex-direction(column);
|
|
6
2
|
align-items: center;
|
|
7
3
|
border: 1.5px solid #e9e9e9;
|
|
8
4
|
border-radius: 1.6rem;
|
|
9
5
|
background: linear-gradient(94.15deg, #f9f6e7 1.69%, #ffffff 49.54%, #dddaee 100%);
|
|
10
|
-
|
|
6
|
+
margin: 2rem;
|
|
7
|
+
max-width: 37.5rem;
|
|
11
8
|
> div {
|
|
9
|
+
|
|
10
|
+
padding: 4rem;
|
|
12
11
|
@include flex-direction(column);
|
|
13
|
-
align
|
|
12
|
+
@include flex-align(center, center);
|
|
13
|
+
|
|
14
|
+
> div {
|
|
15
|
+
@include flex-direction(column);
|
|
16
|
+
align-items: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@include min(tablet) {
|
|
20
|
+
margin: 0 auto;
|
|
21
|
+
max-width: 162rem;
|
|
22
|
+
@include flex-align(center, center);
|
|
23
|
+
> div {
|
|
24
|
+
margin-top: 3.4rem;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
14
27
|
}
|
|
15
28
|
|
|
16
29
|
@include min(tablet) {
|
|
17
|
-
margin: 0;
|
|
30
|
+
margin: 0 0 1.6rem 0;
|
|
18
31
|
padding: 3.2rem;
|
|
19
|
-
max-width: 100%;
|
|
20
32
|
border-radius: 0;
|
|
21
|
-
|
|
22
|
-
> div {
|
|
23
|
-
margin-top: 3.4rem;
|
|
24
|
-
}
|
|
33
|
+
max-width: 100%;
|
|
25
34
|
}
|
|
26
35
|
}
|
|
27
36
|
|
package/src/components/molecules/header/variants/author/template-one/template-one.module.scss
CHANGED
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
border: 1.5px solid #e9e9e9;
|
|
7
7
|
border-radius: 1.6rem;
|
|
8
8
|
background-color: #ffffff;
|
|
9
|
+
margin-bottom: 2rem;
|
|
9
10
|
|
|
10
11
|
@include min(tablet) {
|
|
11
12
|
margin: 1.8rem max(1.6rem, 50% - calc(var(--main-container-max) - 4.8rem) / 2) 0;
|
|
12
13
|
padding: 2.4rem;
|
|
13
14
|
max-width: calc(var(--main-container-max) - 4.8rem);
|
|
14
15
|
flex-direction: row;
|
|
16
|
+
margin-bottom: 2rem;
|
|
15
17
|
|
|
16
18
|
> div {
|
|
17
19
|
margin-left: 4.8rem;
|
|
@@ -66,21 +68,21 @@
|
|
|
66
68
|
|
|
67
69
|
.biography {
|
|
68
70
|
margin-bottom: 2.4rem;
|
|
69
|
-
height: 13.5rem;
|
|
70
|
-
display: -webkit-box;
|
|
71
|
-
-webkit-box-orient: vertical;
|
|
72
|
-
-webkit-line-clamp: 5;
|
|
73
|
-
overflow: hidden;
|
|
74
|
-
text-overflow: ellipsis;
|
|
71
|
+
// height: 13.5rem;
|
|
72
|
+
// display: -webkit-box;
|
|
73
|
+
// -webkit-box-orient: vertical;
|
|
74
|
+
// -webkit-line-clamp: 5;
|
|
75
|
+
// overflow: hidden;
|
|
76
|
+
// text-overflow: ellipsis;
|
|
75
77
|
line-height: 2.7rem;
|
|
76
78
|
font-size: 1.6rem;
|
|
77
79
|
font-weight: 400;
|
|
78
80
|
color: #3e3c47;
|
|
79
81
|
|
|
80
|
-
@include min(tablet) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
82
|
+
// @include min(tablet) {
|
|
83
|
+
// height: 5.4rem;
|
|
84
|
+
// -webkit-line-clamp: 2;
|
|
85
|
+
// }
|
|
84
86
|
|
|
85
87
|
img {
|
|
86
88
|
display: none;
|
|
@@ -10,12 +10,14 @@ import styles from './template-three.module.scss';
|
|
|
10
10
|
export default function TemplateThree({ author, icons }) {
|
|
11
11
|
return (
|
|
12
12
|
<div className={styles.container}>
|
|
13
|
-
<Portrait className={styles.portrait} author={author} />
|
|
14
13
|
<div>
|
|
15
|
-
<
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
<Portrait className={styles.portrait} author={author} />
|
|
15
|
+
<div>
|
|
16
|
+
<Socials className={styles.socials} author={author} />
|
|
17
|
+
<Name className={styles.name} name={author.name} icon={icons?.verify} />
|
|
18
|
+
<div className={styles.title}>{author.author_title}</div>
|
|
19
|
+
<Expertise expertise={author.expertise} icon={icons?.expertise} />
|
|
20
|
+
</div>
|
|
19
21
|
</div>
|
|
20
22
|
</div>
|
|
21
23
|
);
|
package/src/components/molecules/header/variants/author/template-three/template-three.module.scss
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
.container {
|
|
2
|
-
margin: 0 max(1.6rem, 50% - 37.5rem / 2);
|
|
3
|
-
padding: 1.6rem;
|
|
4
|
-
max-width: 37.5rem;
|
|
5
|
-
position: relative;
|
|
6
|
-
@include flex-direction(column);
|
|
7
2
|
border: 1.5px solid #e9e9e9;
|
|
8
3
|
border-radius: 1.6rem;
|
|
9
4
|
background-size: 100% 12.5rem;
|
|
@@ -20,20 +15,33 @@
|
|
|
20
15
|
radial-gradient(at 0% 31%, hsla(247, 40%, 46%, 1) 0px, transparent 50%),
|
|
21
16
|
radial-gradient(at 0% 100%, hsla(247, 40%, 46%, 1) 0px, transparent 50%),
|
|
22
17
|
radial-gradient(at 0% 68%, hsla(247, 40%, 46%, 1) 0px, transparent 50%);
|
|
18
|
+
@include flex-align(center, center);
|
|
19
|
+
margin: 0 1rem 1rem 1rem;
|
|
20
|
+
@include min(tablet){
|
|
21
|
+
background-size: 100% 16.5rem;
|
|
22
|
+
}
|
|
23
|
+
> div {
|
|
24
|
+
margin: 0 max(1.6rem, 50% - 37.5rem / 2);
|
|
25
|
+
padding: 1.6rem;
|
|
26
|
+
position: relative;
|
|
27
|
+
@include flex-direction(column);
|
|
28
|
+
width: 100%;
|
|
23
29
|
|
|
24
|
-
@include min(tablet) {
|
|
25
|
-
margin: 0;
|
|
26
|
-
padding: 4rem;
|
|
27
|
-
max-width: 100%;
|
|
28
|
-
flex-direction: row;
|
|
29
|
-
border-radius: 0;
|
|
30
|
-
background-size: 100% 16.5rem;
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
margin
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
@include min(tablet) {
|
|
32
|
+
margin: 0;
|
|
33
|
+
padding: 4rem 0;
|
|
34
|
+
max-width: 162rem;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
border-radius: 0;
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
> div {
|
|
40
|
+
margin-top: 9.6rem;
|
|
41
|
+
margin-left: 7.2rem;
|
|
42
|
+
padding-top: 4.5rem;
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
37
45
|
}
|
|
38
46
|
}
|
|
39
47
|
}
|
|
@@ -42,8 +50,11 @@
|
|
|
42
50
|
margin-top: 9.6rem;
|
|
43
51
|
margin-bottom: 1.6rem;
|
|
44
52
|
border-radius: 50%;
|
|
45
|
-
|
|
46
53
|
@include min(tablet) {
|
|
54
|
+
margin-bottom: 0;
|
|
55
|
+
margin-left: 2rem;
|
|
56
|
+
}
|
|
57
|
+
@include min(laptop) {
|
|
47
58
|
margin-bottom: 0;
|
|
48
59
|
margin-left: 8rem;
|
|
49
60
|
}
|
|
@@ -86,7 +97,7 @@
|
|
|
86
97
|
top: 14.4rem;
|
|
87
98
|
right: 1.6rem;
|
|
88
99
|
position: absolute;
|
|
89
|
-
|
|
100
|
+
|
|
90
101
|
@include min(tablet) {
|
|
91
102
|
float: right;
|
|
92
103
|
position: initial;
|
|
@@ -95,7 +106,7 @@
|
|
|
95
106
|
> a {
|
|
96
107
|
height: 4rem;
|
|
97
108
|
width: 4rem;
|
|
98
|
-
|
|
109
|
+
|
|
99
110
|
> svg {
|
|
100
111
|
height: 1.65rem;
|
|
101
112
|
width: 1.65rem;
|
|
@@ -10,12 +10,14 @@ import styles from './template-two.module.scss';
|
|
|
10
10
|
export default function TemplateTwo({ author, icons }) {
|
|
11
11
|
return (
|
|
12
12
|
<div className={styles.container}>
|
|
13
|
-
<Portrait className={styles.portrait} author={author} />
|
|
14
13
|
<div>
|
|
15
|
-
<
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
<Portrait className={styles.portrait} author={author} />
|
|
15
|
+
<div>
|
|
16
|
+
<div className={styles.title}>{author.author_title}</div>
|
|
17
|
+
<Name className={styles.name} name={author.name} icon={icons?.verify} />
|
|
18
|
+
<Socials className={styles.socials} author={author} />
|
|
19
|
+
<Expertise expertise={author.expertise} icon={icons?.expertise} />
|
|
20
|
+
</div>
|
|
19
21
|
</div>
|
|
20
22
|
</div>
|
|
21
23
|
);
|
package/src/components/molecules/header/variants/author/template-two/template-two.module.scss
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
.container {
|
|
2
|
-
margin: 0 max(1.6rem, 50% - 37.5rem / 2);
|
|
3
|
-
padding: 2.4rem 2.2rem;
|
|
4
|
-
max-width: 37.5rem;
|
|
5
|
-
@include flex-direction(column);
|
|
6
2
|
border: 1.5px solid #e9e9e9;
|
|
7
3
|
border-radius: 1.6rem;
|
|
8
4
|
background-color: #ffffff;
|
|
5
|
+
margin: 0 1rem 1.6rem 1rem;
|
|
6
|
+
> div {
|
|
7
|
+
margin: 0 max(1.6rem, 50% - 37.5rem / 2);
|
|
8
|
+
padding: 2.4rem 2.2rem;
|
|
9
|
+
max-width: 37.5rem;
|
|
10
|
+
@include flex-direction(column);
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
@include min(tablet) {
|
|
13
|
+
margin: 0 auto;
|
|
14
|
+
padding: 4rem 6rem;
|
|
15
|
+
max-width: 162rem;
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
border-radius: 0;
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
> div {
|
|
20
|
+
margin-left: 7.2rem;
|
|
21
|
+
padding-top: 4.5rem;
|
|
22
|
+
}
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
25
|
}
|
package/src/components/molecules/header/variants/operator/template-four/template-four.module.scss
CHANGED
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
margin: 0 auto;
|
|
19
19
|
margin-top: var(--operator-template-four-margin-top-desktop, 1.6rem);
|
|
20
20
|
margin-bottom: var(--operator-template-four-margin-bottom-desktop, 1.6rem);
|
|
21
|
+
margin-left: var(--operator-template-four-margin-left-desktop, 1.6rem);
|
|
22
|
+
margin-right: var(--operator-template-four-margin-right-desktop, 1.6rem);
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
|
package/src/components/molecules/header/variants/operator/template-three/template-three.module.scss
CHANGED
|
@@ -46,6 +46,8 @@
|
|
|
46
46
|
margin: 0 auto;
|
|
47
47
|
margin-top: var(--operator-template-three-margin-top-desktop, 1.6rem);
|
|
48
48
|
margin-bottom: var(--operator-template-three-margin-bottom-desktop, 1.6rem);
|
|
49
|
+
margin-left: var(--operator-template-three-margin-left-desktop, 1.6rem);
|
|
50
|
+
margin-right: var(--operator-template-three-margin-right-desktop, 1.6rem);
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
|
|
@@ -122,7 +124,6 @@
|
|
|
122
124
|
width: 100%;
|
|
123
125
|
padding-bottom: 0.7rem;
|
|
124
126
|
|
|
125
|
-
|
|
126
127
|
>div {
|
|
127
128
|
grid-template-columns: 1fr;
|
|
128
129
|
padding: 16px;
|
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
{
|
|
18
18
|
fieldLabel: 'Bonus',
|
|
19
19
|
translationKey: 'bonus_offers',
|
|
20
|
-
fieldValue: '
|
|
20
|
+
fieldValue: 'rating_bonuses',
|
|
21
21
|
componentToUse: (numOfStars, value) => (
|
|
22
22
|
<StarRating numOfStars={numOfStars} rating={value} icon={<FaStar />} />
|
|
23
23
|
),
|
|
@@ -25,7 +25,7 @@ export default {
|
|
|
25
25
|
{
|
|
26
26
|
fieldLabel: 'Payment',
|
|
27
27
|
translationKey: 'payment_method',
|
|
28
|
-
fieldValue: '
|
|
28
|
+
fieldValue: 'rating_payout',
|
|
29
29
|
componentToUse: (numOfStars, value) => (
|
|
30
30
|
<StarRating numOfStars={numOfStars} rating={value} icon={<FaStar />} />
|
|
31
31
|
),
|
|
@@ -33,7 +33,7 @@ export default {
|
|
|
33
33
|
{
|
|
34
34
|
fieldLabel: 'Support',
|
|
35
35
|
translationKey: 'customer_service',
|
|
36
|
-
fieldValue: '
|
|
36
|
+
fieldValue: 'rating_games',
|
|
37
37
|
componentToUse: (numOfStars, value) => (
|
|
38
38
|
<StarRating numOfStars={numOfStars} rating={value} icon={<FaStar />} />
|
|
39
39
|
),
|
|
@@ -41,7 +41,7 @@ export default {
|
|
|
41
41
|
{
|
|
42
42
|
fieldLabel: 'Usability',
|
|
43
43
|
translationKey: 'site_usability',
|
|
44
|
-
fieldValue: '
|
|
44
|
+
fieldValue: 'rating_customer',
|
|
45
45
|
componentToUse: (numOfStars, value) => (
|
|
46
46
|
<StarRating numOfStars={numOfStars} rating={value} icon={<FaStar />} />
|
|
47
47
|
),
|
|
@@ -49,7 +49,7 @@ export default {
|
|
|
49
49
|
{
|
|
50
50
|
fieldLabel: 'Games',
|
|
51
51
|
translationKey: 'games',
|
|
52
|
-
fieldValue: '
|
|
52
|
+
fieldValue: 'rating_casino',
|
|
53
53
|
componentToUse: (numOfStars, value) => (
|
|
54
54
|
<StarRating numOfStars={numOfStars} rating={value} icon={<FaStar />} />
|
|
55
55
|
),
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
{
|
|
60
60
|
fieldLabel: 'Bonus',
|
|
61
61
|
translationKey: 'bonus_offers',
|
|
62
|
-
fieldValue: '
|
|
62
|
+
fieldValue: 'rating_bonuses',
|
|
63
63
|
componentToUse: (numOfStars, value) => (
|
|
64
64
|
<StarRating numOfStars={numOfStars} rating={value} icon={<FaStar />} />
|
|
65
65
|
),
|
|
@@ -67,7 +67,7 @@ export default {
|
|
|
67
67
|
{
|
|
68
68
|
fieldLabel: 'Payment',
|
|
69
69
|
translationKey: 'payment_method',
|
|
70
|
-
fieldValue: '
|
|
70
|
+
fieldValue: 'rating_payout',
|
|
71
71
|
componentToUse: (numOfStars, value) => (
|
|
72
72
|
<StarRating numOfStars={numOfStars} rating={value} icon={<FaStar />} />
|
|
73
73
|
),
|
|
@@ -75,7 +75,7 @@ export default {
|
|
|
75
75
|
{
|
|
76
76
|
fieldLabel: 'Support',
|
|
77
77
|
translationKey: 'customer_service',
|
|
78
|
-
fieldValue: '
|
|
78
|
+
fieldValue: 'rating_games',
|
|
79
79
|
componentToUse: (numOfStars, value) => (
|
|
80
80
|
<StarRating numOfStars={numOfStars} rating={value} icon={<FaStar />} />
|
|
81
81
|
),
|
|
@@ -83,7 +83,7 @@ export default {
|
|
|
83
83
|
{
|
|
84
84
|
fieldLabel: 'Usability',
|
|
85
85
|
translationKey: 'site_usability',
|
|
86
|
-
fieldValue: '
|
|
86
|
+
fieldValue: 'rating_customer',
|
|
87
87
|
componentToUse: (numOfStars, value) => (
|
|
88
88
|
<StarRating numOfStars={numOfStars} rating={value} icon={<FaStar />} />
|
|
89
89
|
),
|
|
@@ -91,7 +91,7 @@ export default {
|
|
|
91
91
|
{
|
|
92
92
|
fieldLabel: 'Games',
|
|
93
93
|
translationKey: 'games',
|
|
94
|
-
fieldValue: '
|
|
94
|
+
fieldValue: 'rating_casino',
|
|
95
95
|
componentToUse: (numOfStars, value) => (
|
|
96
96
|
<StarRating numOfStars={numOfStars} rating={value} icon={<FaStar />} />
|
|
97
97
|
),
|
|
@@ -82,30 +82,33 @@ export const relationContent = (section) => {
|
|
|
82
82
|
);
|
|
83
83
|
return <ModuleComponent page={section.page} image="../../../../images/verify.svg" />;
|
|
84
84
|
}
|
|
85
|
-
// TODO - replace page.author with page.relation
|
|
86
85
|
case 'author': {
|
|
86
|
+
if (!section.page.relation) {
|
|
87
|
+
return <></>;
|
|
88
|
+
}
|
|
89
|
+
|
|
87
90
|
switch (section?.page?.page_styles?.short_name) {
|
|
88
91
|
case 'template_two':
|
|
89
92
|
ModuleComponent = loadable(() =>
|
|
90
93
|
import('../../../../components/molecules/header/variants/author/template-two')
|
|
91
94
|
);
|
|
92
|
-
return <ModuleComponent author={section.page.
|
|
95
|
+
return <ModuleComponent author={section.page.relation} />;
|
|
93
96
|
case 'template_three':
|
|
94
97
|
ModuleComponent = loadable(() =>
|
|
95
98
|
import('../../../../components/molecules/header/variants/author/template-three')
|
|
96
99
|
);
|
|
97
|
-
return <ModuleComponent author={section.page.
|
|
100
|
+
return <ModuleComponent author={section.page.relation} />;
|
|
98
101
|
case 'template_four':
|
|
99
102
|
ModuleComponent = loadable(() =>
|
|
100
103
|
import('../../../../components/molecules/header/variants/author/template-four')
|
|
101
104
|
);
|
|
102
|
-
return <ModuleComponent author={section.page.
|
|
105
|
+
return <ModuleComponent author={section.page.relation} />;
|
|
103
106
|
case 'template_one':
|
|
104
107
|
default:
|
|
105
108
|
ModuleComponent = loadable(() =>
|
|
106
109
|
import('../../../../components/molecules/header/variants/author/template-one')
|
|
107
110
|
);
|
|
108
|
-
return <ModuleComponent author={section.page.
|
|
111
|
+
return <ModuleComponent author={section.page.relation} />;
|
|
109
112
|
}
|
|
110
113
|
}
|
|
111
114
|
case 'page': {
|
|
@@ -345,4 +345,4 @@
|
|
|
345
345
|
|
|
346
346
|
|
|
347
347
|
|
|
348
|
-
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.3c8ed572.iframe.bundle.js"></script><script src="434.757b8672.iframe.bundle.js"></script><script src="main.
|
|
348
|
+
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.3c8ed572.iframe.bundle.js"></script><script src="434.757b8672.iframe.bundle.js"></script><script src="main.8e1a414a.iframe.bundle.js"></script></body></html>
|