gatsby-matrix-theme 7.1.4 → 7.1.7

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,30 @@
1
+ ## [7.1.7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v7.1.6...v7.1.7) (2022-05-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * default operator image in comparison table ([8c283bc](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8c283bc5c8aad251268ab6c47430628aa09075ab))
7
+
8
+
9
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([ac1d78f](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ac1d78faadec3008338d5c26d221e9f24716d583))
10
+
11
+ ## [7.1.6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v7.1.5...v7.1.6) (2022-05-20)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * comparison table null image fix ([8fb35c9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/8fb35c9e531e86c4bc9a570e2e09d462eb85753e))
17
+
18
+ ## [7.1.5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v7.1.4...v7.1.5) (2022-05-19)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * omparison table payment method fixes and table zindex ([9865d1b](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9865d1b5b20a4193bdb84fd23623a373dc5e9592))
24
+
25
+
26
+ * Merge branch 'tm-2904-general-fixes' into 'master' ([3644ec8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3644ec8c4d2cf5d079db3245cae95e7c84e474fd))
27
+
1
28
  ## [7.1.4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v7.1.3...v7.1.4) (2022-05-19)
2
29
 
3
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "7.1.4",
3
+ "version": "7.1.7",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -13,6 +13,7 @@ import StarRating from 'gatsby-core-theme/src/components/molecules/star-rating';
13
13
  import Link from 'gatsby-core-theme/src/hooks/link';
14
14
  import Bonus from 'gatsby-core-theme/src/components/atoms/bonus';
15
15
  import { Context } from 'gatsby-core-theme/src/context/TranslationsProvider';
16
+ import GatsbyImg from 'gatsby-core-theme/src/hooks/gatsby-img';
16
17
  import styles from './table.module.scss';
17
18
 
18
19
  const listHeadings = [
@@ -82,12 +83,21 @@ export default function ComparisonTable({
82
83
  case 'casino_name':
83
84
  return (
84
85
  <td key={key} className={styles.casinoName}>
85
- <LazyImg
86
- src={imagePrettyUrl(item?.relation?.logo_url)}
87
- height={89}
88
- width={89}
89
- alt={item.relation.name}
90
- />
86
+ {item?.relation?.logo_url ? (
87
+ <LazyImg
88
+ src={imagePrettyUrl(item?.relation?.logo_url)}
89
+ height={89}
90
+ width={89}
91
+ alt={item.relation.name}
92
+ />
93
+ ) : (
94
+ <GatsbyImg
95
+ filename="default-operator.png"
96
+ alt={item.relation.name}
97
+ width="9rem"
98
+ height="9rem"
99
+ />
100
+ )}
91
101
  <div>
92
102
  <span>{item.relation.name}</span>
93
103
  <OperatorCta
@@ -134,17 +144,20 @@ export default function ComparisonTable({
134
144
  {item?.relation?.bonus?.deposit_methods &&
135
145
  // eslint-disable-next-line array-callback-return
136
146
  item?.relation?.bonus?.deposit_methods.map((deposit, i, list) => {
137
- const itemsLength = list.length === 6 ? 6 : 5;
147
+ let itemsLength = list.length === 6 ? 6 : 5;
138
148
  if (i < (showAllPayment.includes(index) ? list.length : itemsLength)) {
139
- return (
140
- <LazyImg
141
- key={`${key}-${deposit.name}`}
142
- src={imagePrettyUrl(deposit?.logo_filename)}
143
- width={72}
144
- height={72}
145
- alt={deposit.name}
146
- />
147
- );
149
+ if (deposit?.logo_filename) {
150
+ return (
151
+ <LazyImg
152
+ key={`${key}-${deposit.name}`}
153
+ src={imagePrettyUrl(deposit?.logo_filename)}
154
+ width={72}
155
+ height={72}
156
+ alt={deposit.name}
157
+ />
158
+ );
159
+ }
160
+ itemsLength -= 1;
148
161
  }
149
162
  })}
150
163
  {item?.relation?.bonus?.deposit_methods?.length > 6 &&
@@ -191,16 +204,19 @@ export default function ComparisonTable({
191
204
  return (
192
205
  <td key={key} className={styles.licenses}>
193
206
  {item?.relation?.bonus?.license_objects &&
194
- item?.relation?.bonus?.license_objects
195
- .slice(0, 3)
196
- .map((license) => (
197
- <LazyImg
198
- key={license.name}
199
- src={imagePrettyUrl(license?.logo_filename)}
200
- height={32}
201
- alt={license.name}
202
- />
203
- ))}
207
+ item?.relation?.bonus?.license_objects.slice(0, 3).map((license) => {
208
+ if (license?.logo_filename) {
209
+ return (
210
+ <LazyImg
211
+ key={license.name}
212
+ src={imagePrettyUrl(license?.logo_filename)}
213
+ height={32}
214
+ alt={license.name}
215
+ />
216
+ );
217
+ }
218
+ return <></>;
219
+ })}
204
220
  </td>
205
221
  );
206
222
  default:
@@ -32,7 +32,6 @@
32
32
 
33
33
  @include min(laptop) {
34
34
  position: sticky;
35
- z-index: 1;
36
35
  left: 0;
37
36
  }
38
37
  }
@@ -81,6 +80,10 @@
81
80
  .raiting {
82
81
  @include flex-align(center, space-between);
83
82
 
83
+ > div >div >span {
84
+ position: inherit;
85
+ }
86
+
84
87
  a {
85
88
  font-weight: bold;
86
89
  font-size: 1.6rem;
@@ -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.7aedec23.iframe.bundle.js"></script><script src="152.cf98088f.iframe.bundle.js"></script><script src="main.a84cf40d.iframe.bundle.js"></script></body></html>
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.7aedec23.iframe.bundle.js"></script><script src="152.cf98088f.iframe.bundle.js"></script><script src="main.77c6f6c8.iframe.bundle.js"></script></body></html>