gatsby-matrix-theme 3.2.15 → 3.2.16

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
+ ## [3.2.16](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.15...v3.2.16) (2022-01-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * cards v2 tables ([9bf37b7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/9bf37b745affa8bd3fc5f06dcd37ff08a5f59c4c))
7
+ * table cards styling ([47c30d5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/47c30d5a0c8301ea0156af02274c9f82e364f48e))
8
+
9
+
10
+ ### Config
11
+
12
+ * updated core theme version ([e870906](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e870906b830e863854da1c23f25eec56302e1cc1))
13
+
14
+
15
+ * Merge branch 'tm-2597-table-fixes' into 'master' ([3c97a96](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/3c97a9622fa85956e9ffbaf9cd83f497c9b52a80))
16
+
1
17
  ## [3.2.15](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v3.2.14...v3.2.15) (2022-01-20)
2
18
 
3
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "3.2.15",
3
+ "version": "3.2.16",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -31,7 +31,7 @@
31
31
  "cross-env": "^7.0.2",
32
32
  "dotenv": "8.2.0",
33
33
  "gatsby": "^3.3.1",
34
- "gatsby-core-theme": "^2.2.0",
34
+ "gatsby-core-theme": "^2.2.1",
35
35
  "gatsby-image": "^3.3.0",
36
36
  "gatsby-plugin-image": "^1.3.1",
37
37
  "gatsby-plugin-postcss": "^4.3.0",
@@ -2,8 +2,8 @@
2
2
  import React, { useContext } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { Context } from 'gatsby-core-theme/src/context/TranslationsProvider';
5
- import { translate, getBonus } from 'gatsby-core-theme/src/helpers/getters';
6
- import OperatorCta from 'gatsby-core-theme/src/components/atoms/operator-cta';
5
+ import { translate, getBonus, prettyTracker } from 'gatsby-core-theme/src/helpers/getters';
6
+ import Link from 'gatsby-core-theme/src/hooks/link';
7
7
 
8
8
  import styles from './table.module.scss';
9
9
 
@@ -38,20 +38,27 @@ const CasinosTable = ({ module }) => {
38
38
  {items &&
39
39
  items.map((item) => (
40
40
  <tr>
41
- <td>{item.title}</td>
42
41
  <td>
43
- {getBonus('main', item?.relation) && oneLiner(getBonus('main', item?.relation))}
42
+ <Link
43
+ to={item.path || item.relation.path}
44
+ title={item.relation.name}
45
+ className={`${styles.casinoLogo} table-operator-card-gtm`}
46
+ >
47
+ {item.title}
48
+ </Link>
44
49
  </td>
45
50
  <td>
46
- <OperatorCta
47
- tracker="main"
48
- operator={item?.relation}
49
- playText={`${translate(translations, 'visit', 'Visit')} ${
50
- item?.relation?.name
51
- }`}
52
- translationKey="visit_online"
53
- gtmClass="table-operator-card-gtm btn-cta"
54
- />
51
+ {getBonus('main', item?.relation) && oneLiner(getBonus('main', item?.relation))}
52
+ </td>
53
+ <td style={{ textAlign: 'left' }}>
54
+ <a
55
+ href={prettyTracker(item.relation)}
56
+ className="table-operator-card-gtm btn-cta"
57
+ target="_blank"
58
+ rel="noreferrer"
59
+ >
60
+ {`${translate(translations, 'visit', 'Visit')} ${item?.relation?.name}`}
61
+ </a>
55
62
  </td>
56
63
  </tr>
57
64
  ))}
@@ -26,21 +26,15 @@
26
26
  a {
27
27
  text-decoration: underline;
28
28
  }
29
- .secondLine{
29
+ .secondLine {
30
30
  color: red;
31
31
  }
32
- &:last-of-type{
33
- a{
34
- background-color: transparent !important;
35
- color: black !important;
32
+ &:last-of-type {
33
+ a {
36
34
  padding-left: 0;
37
35
  text-decoration: none;
38
36
  font-size: 1.6rem;
39
37
  font-weight: normal;
40
- &:hover{
41
- background: transparent !important;
42
- text-decoration: underline;
43
- }
44
38
  }
45
39
  }
46
40
  }
@@ -57,12 +51,11 @@
57
51
  tbody {
58
52
  tr {
59
53
  &:first-child {
60
-
61
54
  td {
62
55
  color: white;
63
56
  background-color: var(--table-head-background);
64
57
  border-radius: 0;
65
- .secondLine{
58
+ .secondLine {
66
59
  color: white;
67
60
  }
68
61
  &:first-child {
@@ -70,10 +63,10 @@
70
63
  border-top-right-radius: var(--table-border-radius);
71
64
  }
72
65
 
73
- a {
74
- color: white;
75
- text-decoration: underline;
76
- }
66
+ a {
67
+ color: white;
68
+ text-decoration: underline;
69
+ }
77
70
  }
78
71
  }
79
72
 
@@ -81,7 +74,7 @@
81
74
  display: block;
82
75
  text-align: left;
83
76
  border-bottom: 1px solid #bfd3e5;
84
- width: 100%;
77
+ width: 100%;
85
78
  }
86
79
 
87
80
  &:last-child {