gatsby-core-theme 20.0.1 → 20.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [20.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v20.0.1...v20.0.2) (2023-04-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix for tnc issue on matrix ([b0fe49e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b0fe49e5d344aad42b311e343ee1c5e2b697ad37))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Code Refactoring
|
|
10
|
+
|
|
11
|
+
* correction to tnc props ([6ea3616](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6ea3616ef5fcf5dad80801a130971ea50cd7ded6))
|
|
12
|
+
* update page.relation check in processor ([ab92c2d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/ab92c2d78808d06eb4fa40aa94332d4194587b8b))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
* Merge branch 'tm-tnc-issue' into 'master' ([d29e1aa](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d29e1aab514b494197ab1f305e308d03ce776e9a))
|
|
16
|
+
|
|
1
17
|
## [20.0.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v20.0.0...v20.0.1) (2023-04-12)
|
|
2
18
|
|
|
3
19
|
|
package/package.json
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
.collapseContainer {
|
|
2
|
-
.buttonM {
|
|
3
|
-
@include max(tablet) {
|
|
4
|
-
display: block;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.buttonD {
|
|
9
|
-
@include min(tablet) {
|
|
10
|
-
display: block;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
2
|
.button {
|
|
15
3
|
display: none;
|
|
16
4
|
position: relative;
|
|
@@ -23,6 +11,18 @@
|
|
|
23
11
|
left: 115%;
|
|
24
12
|
top: 42%;
|
|
25
13
|
}
|
|
14
|
+
|
|
15
|
+
&.buttonM {
|
|
16
|
+
@include max(tablet) {
|
|
17
|
+
display: block;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.buttonD {
|
|
22
|
+
@include min(tablet) {
|
|
23
|
+
display: block;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.active {
|
|
@@ -6,8 +6,8 @@ import Collapse from '~atoms/collapse';
|
|
|
6
6
|
|
|
7
7
|
const Tnc = ({
|
|
8
8
|
hasCollapse = true,
|
|
9
|
-
onlyMobile,
|
|
10
|
-
onlyDesktop,
|
|
9
|
+
onlyMobile = true,
|
|
10
|
+
onlyDesktop = true,
|
|
11
11
|
buttonText = 'Terms and Conditions Apply',
|
|
12
12
|
contentText = '18+ New Players only. Play responsibly.',
|
|
13
13
|
initOpen = false,
|
|
@@ -143,8 +143,8 @@ export const Default = Template.bind({});
|
|
|
143
143
|
Default.args = {
|
|
144
144
|
hasCollapse: true,
|
|
145
145
|
contentText: tncText,
|
|
146
|
-
onlyMobile:
|
|
147
|
-
onlyDesktop:
|
|
146
|
+
onlyMobile: true,
|
|
147
|
+
onlyDesktop: true,
|
|
148
148
|
buttonText: 'Terms and Conditions Apply',
|
|
149
149
|
initOpen: false,
|
|
150
150
|
isFixed: false,
|
|
@@ -9,7 +9,7 @@ export const processRelations = (page, pageType, transformedPages, market, data,
|
|
|
9
9
|
switch (page.relation_type) {
|
|
10
10
|
// Add path for payment page from payment method
|
|
11
11
|
case 'operator':
|
|
12
|
-
if (hasRelation) {
|
|
12
|
+
if (page.relation && hasRelation) {
|
|
13
13
|
// eslint-disable-next-line camelcase, prefer-const
|
|
14
14
|
const { ribbons, extra_fields, bonus } = page.relation;
|
|
15
15
|
bonus &&
|