gatsby-matrix-theme 53.14.0 → 53.15.1

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,23 @@
1
+ ## [53.15.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.15.0...v53.15.1) (2026-04-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * disable cuponcode for bet365 ([21a6a7b](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/21a6a7b8f1c5a9f47354627f724bbb5a7b686f07))
7
+
8
+
9
+ * Merge branch 'coupon-code' into 'master' ([67455f0](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/67455f0bbbf260800b01efad40a82d307a28ffe9))
10
+
11
+ # [53.15.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.14.0...v53.15.0) (2026-04-14)
12
+
13
+
14
+ * Merge branch 'update-core-theme-v22' into 'master' ([b53a080](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/b53a080a1724da8031e9e01b4cd35bb799fcd8ef))
15
+
16
+
17
+ ### Features
18
+
19
+ * update core theme ([961f866](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/961f8660d3537f6d406d39e66323ad8c03c4f27c))
20
+
1
21
  # [53.14.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.13.5...v53.14.0) (2026-04-14)
2
22
 
3
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "53.14.0",
3
+ "version": "53.15.1",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -26,7 +26,7 @@
26
26
  "@react-icons/all-files": "^4.1.0",
27
27
  "@gigmedia/enigma-utils": "^1.20.0",
28
28
  "gatsby": "^5.11.0",
29
- "gatsby-core-theme": "^44.21.1",
29
+ "gatsby-core-theme": "^44.22.0",
30
30
  "gatsby-plugin-sharp": "^5.11.0",
31
31
  "gatsby-plugin-sitemap": "^6.13.1",
32
32
  "gatsby-transformer-sharp": "^5.11.0",
@@ -15,6 +15,7 @@ const Coupon = ({
15
15
  icon = <CopyIcon />,
16
16
  checkIcon = <CheckCircleIcon />,
17
17
  showIcon = true,
18
+ shortCode
18
19
  }) => {
19
20
  if (!code) return;
20
21
 
@@ -33,6 +34,7 @@ const Coupon = ({
33
34
  };
34
35
 
35
36
  const inactive = status === 'inactive';
37
+ const isBet365 = shortCode === 'bet365';
36
38
 
37
39
  return (
38
40
  <div
@@ -44,12 +46,12 @@ const Coupon = ({
44
46
  <span className={styles.prefix}>{useTranslate(translationKey, defaultTranslation)}</span>
45
47
  )}
46
48
  <button
47
- onClick={(e) => (code !== null && !inactive ? copyToClipBoard(e, code) : '')}
49
+ onClick={(e) => (code !== null && !inactive && !isBet365 ? copyToClipBoard(e, code) : '')}
48
50
  type="button"
49
51
  className={`${styles.coupon} ${copySuccess ? styles.copied : ''}
50
52
  ${code === null ? styles.noCode : ''}
51
53
  ${inactive ? styles.disabled : ''}`}
52
- disabled={inactive}
54
+ disabled={inactive || isBet365}
53
55
  >
54
56
  {!copySuccess ? (
55
57
  <>
@@ -59,7 +61,7 @@ const Coupon = ({
59
61
  </span>
60
62
  )}
61
63
  {code || useTranslate('no_coupon_available', 'Not Needed')}
62
- {showIcon && code !== null && !inactive && icon}
64
+ {showIcon && code !== null && !inactive && !isBet365 && icon}
63
65
  </>
64
66
  ) : (
65
67
  <>
@@ -82,6 +84,7 @@ Coupon.propTypes = {
82
84
  showIcon: PropTypes.bool,
83
85
  translationKey: PropTypes.string,
84
86
  defaultTranslation: PropTypes.string,
87
+ shortCode:PropTypes.string
85
88
  };
86
89
 
87
90
  export default Coupon;
@@ -62,7 +62,7 @@ const RecommendedOperators = ({
62
62
  </div>
63
63
  {(showCouponCode && couponCode) && (
64
64
  <div className={styles.couponCtaContainer}>
65
- <Coupon code={couponCode} />
65
+ <Coupon code={couponCode} shortCode={operator?.short_name} />
66
66
  <OperatorCta
67
67
  operator={operator}
68
68
  tracker="main"