gatsby-core-theme 44.10.1 → 44.10.11

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.
Files changed (46) hide show
  1. package/.ci.yml +1 -0
  2. package/CHANGELOG.md +87 -0
  3. package/gatsby-config.js +3 -3
  4. package/gatsby-node.mjs +1 -0
  5. package/package.json +1 -1
  6. package/src/components/app-ssr.js +16 -18
  7. package/src/components/atoms/admin/bar/index.js +6 -2
  8. package/src/components/atoms/admin/button/index.js +4 -3
  9. package/src/components/atoms/contact-form/index.js +2 -2
  10. package/src/components/atoms/market-dropdown/index.js +7 -9
  11. package/src/components/atoms/notifications/index.js +2 -3
  12. package/src/components/atoms/ratings/index.js +7 -6
  13. package/src/components/atoms/review-link/index.js +16 -11
  14. package/src/components/atoms/search/autocomplete/article/index.js +13 -9
  15. package/src/components/atoms/search/autocomplete/default/index.js +13 -9
  16. package/src/components/atoms/search/autocomplete/game/index.js +22 -12
  17. package/src/components/atoms/search/autocomplete/operator/index.js +26 -18
  18. package/src/components/molecules/bonus/template-one/index.js +15 -2
  19. package/src/components/molecules/bonus/template-two/index.js +7 -1
  20. package/src/components/molecules/cookie-modal/index.js +1 -1
  21. package/src/components/molecules/floating-area/index.js +6 -12
  22. package/src/components/molecules/footer/index.js +35 -27
  23. package/src/components/molecules/footer/variants/template-one/template-one.stories.js +70 -67
  24. package/src/components/molecules/footer/variants/template-one/template-one.test.js +92 -69
  25. package/src/components/molecules/footer/variants/template-three/template-three.stories.js +4 -4
  26. package/src/components/molecules/footer/variants/template-three/template-three.test.js +98 -73
  27. package/src/components/molecules/footer/variants/template-two/template-two.stories.js +3 -3
  28. package/src/components/molecules/footer/variants/template-two/template-two.test.js +96 -73
  29. package/src/components/molecules/header/variants/default/template-one/index.js +15 -13
  30. package/src/components/molecules/header/variants/default/template-one/template-one.test.js +37 -29
  31. package/src/components/molecules/header/variants/slot/template-one/templateone.test.js +32 -29
  32. package/src/components/molecules/leave-comment-form/index.js +90 -79
  33. package/src/components/molecules/main/index.js +5 -7
  34. package/src/components/molecules/menu/index.js +28 -30
  35. package/src/components/molecules/newsletter/form/index.js +2 -2
  36. package/src/components/molecules/newsletter/index.js +23 -19
  37. package/src/components/molecules/tnc/index.js +4 -2
  38. package/src/components/organisms/anchor/template-two/index.js +33 -18
  39. package/src/components/organisms/footer-navigation/index.js +10 -9
  40. package/src/constants/ratings-constant.js +7 -9
  41. package/src/helpers/getters.mjs +3 -3
  42. package/src/helpers/processImageNode.js +38 -30
  43. package/src/helpers/processImageNode.test.js +33 -24
  44. package/src/helpers/replaceMedia.js +2 -2
  45. package/src/resolver/games.mjs +1 -1
  46. package/src/resolver/operators.mjs +23 -13
package/.ci.yml CHANGED
@@ -52,6 +52,7 @@ Theme Beta Publish:
52
52
  before_script:
53
53
  - echo "@gigmedia:registry=https://npm.gigmedia.tech/" >> ~/.npmrc
54
54
  - echo "//npm.gigmedia.tech/:_authToken=${NPM_PRIVATE_TOKEN}" >> ~/.npmrc
55
+ - echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" >> ~/.npmrc
55
56
  - git config --global http.sslverify false
56
57
  - git config --global user.email "floyd@gig.com"
57
58
  - git config --global user.name "floyd"
package/CHANGELOG.md CHANGED
@@ -1,3 +1,90 @@
1
+ ## [44.10.11](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.10.10...v44.10.11) (2025-12-24)
2
+
3
+
4
+ ### Config
5
+
6
+ * package json publish registry ([e390998](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/e390998d469a1a8537b756689e88f179edaf204f))
7
+
8
+ ## [44.10.10](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.10.9...v44.10.10) (2025-12-24)
9
+
10
+
11
+ ### Config
12
+
13
+ * revert npm registry ([e8c1fce](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/e8c1fce05345d27c727cab10216707bb11afc94a))
14
+ * storybook cicd ([fbbf7b9](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/fbbf7b9c690a45abd0559d43742e8b67c57bd635))
15
+
16
+ ## [44.10.9](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.10.8...v44.10.9) (2025-12-22)
17
+
18
+
19
+ ### Config
20
+
21
+ * cicd ([19ee96a](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/19ee96a0ddfaee70ed36e8184e51bc4a5bb8778d))
22
+ * cicd ([d66f47f](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/d66f47f68ad42ee93511162434e68a533b1e88dd))
23
+
24
+ ## [44.10.8](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.10.7...v44.10.8) (2025-12-22)
25
+
26
+
27
+ ### Config
28
+
29
+ * cicd ([f89f0fe](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f89f0feb8d871c02a367dcdb51deaa27293e0985))
30
+ * cicd ([8a32764](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8a32764afc5aaf855833ffe99a58916aab9ea753))
31
+ * cicd ([6845813](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/684581377eed9fc043bc37446404b480854f43b2))
32
+ * update theme ([edf742f](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/edf742fa89b03631ec011e3c44578851093185f5))
33
+
34
+ ## [44.10.7](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.10.6...v44.10.7) (2025-12-19)
35
+
36
+
37
+ ### Bug Fixes
38
+
39
+ * ci triggerer ([7efb556](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/7efb5567eb349a087c0ffa735cc53d37f399aeb6))
40
+
41
+ ## [44.10.6](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.10.5...v44.10.6) (2025-12-19)
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * ci triggerer ([1fb50e1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/1fb50e12ba7f141fb4b9776a08c5e21aa71c4018))
47
+
48
+ ## [44.10.5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.10.4...v44.10.5) (2025-12-19)
49
+
50
+
51
+ ### Bug Fixes
52
+
53
+ * ci triggerer ([4455abf](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/4455abfd227bf0b7471d0a38b22d62063a0e4405))
54
+
55
+ ## [44.10.4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.10.3...v44.10.4) (2025-12-19)
56
+
57
+
58
+ ### Bug Fixes
59
+
60
+ * ci triggerer ([01071f3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/01071f37b73e948d3fa7eb7f0796ef6d0ef35c9c))
61
+
62
+ ## [44.10.3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.10.2...v44.10.3) (2025-12-19)
63
+
64
+
65
+ ### Bug Fixes
66
+
67
+ * core package in storybook build ([b3eeacc](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/b3eeacc2f3f8f3db8026a65a1dc04b1d4898083b))
68
+ * import to new core package name ([fa2205f](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/fa2205fafa4fb38bf65ccc27aee0f1a1dec51f26))
69
+
70
+
71
+ ### Config
72
+
73
+ * use private registry ([12efa45](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/12efa45601cab9c374e742aaccbf923b62644ee1))
74
+
75
+ ## [44.10.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.10.1...v44.10.2) (2025-12-18)
76
+
77
+
78
+ ### Bug Fixes
79
+
80
+ * disable sourcamp on prod ([8e84dfa](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8e84dfa00123b1dcfd40d3cf5bc1c62832a1336b))
81
+ * test ([ea2ff94](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ea2ff94c4629cf649ba644beb9a77fe4fca0c48e))
82
+ * update tnc function to make it more dynamic ([39d2946](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/39d2946e85496f25175d070aeb8ed31a1b5ddf74))
83
+
84
+
85
+ * Merge branch 'en-293-update-t-and-c-function' into 'master' ([9ebdd6b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/9ebdd6bdebc4fdf0eec147f51d6d1077f698a976))
86
+ * Merge branch 'fix/disable-sourcemap' into 'master' ([9254449](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/9254449257d33e686308dca5f68dea67efc62a6d))
87
+
1
88
  ## [44.10.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.10.0...v44.10.1) (2025-12-08)
2
89
 
3
90
 
package/gatsby-config.js CHANGED
@@ -4,20 +4,20 @@ module.exports = {
4
4
  },
5
5
  plugins: [
6
6
  {
7
- resolve: 'gatsby-plugin-sass',
7
+ resolve: "gatsby-plugin-sass",
8
8
  options: {
9
9
  cssLoaderOptions: {
10
10
  esModule: false,
11
11
  modules: {
12
12
  namedExport: false,
13
- localIdentName: '[name]__[local]__[hash:base64:5]', // customize the class name structure here
13
+ localIdentName: "[name]__[local]__[hash:base64:5]", // customize the class name structure here
14
14
  },
15
15
  },
16
16
  additionalData: '@import "gatsby-core-theme/src/styles/globals.scss";',
17
17
  },
18
18
  },
19
19
  {
20
- resolve: 'gatsby-plugin-webpack-bundle-analyser-v2',
20
+ resolve: "gatsby-plugin-webpack-bundle-analyser-v2",
21
21
  options: {
22
22
  devMode: true,
23
23
  disable: true,
package/gatsby-node.mjs CHANGED
@@ -503,6 +503,7 @@ export const onCreateWebpackConfig = ({ actions, stage, getConfig }) => {
503
503
  }
504
504
 
505
505
  actions.setWebpackConfig({
506
+ devtool: stage === "build-javascrip" ? false : "eval-source-map",
506
507
  resolve: {
507
508
  alias: {
508
509
  "~atoms": `${__dirname}/src/components/atoms`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.10.1",
3
+ "version": "44.10.11",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -1,16 +1,15 @@
1
1
  /* eslint-disable react/prop-types */
2
2
  /* eslint-disable react/forbid-prop-types */
3
- import React, { useEffect, useState } from 'react';
4
- import PropTypes from 'prop-types';
5
- import { graphql, useStaticQuery } from 'gatsby';
6
- import MainProvider from '~context/MainProvider';
3
+ import React, { useEffect, useState } from "react";
4
+ import PropTypes from "prop-types";
5
+ import { graphql, useStaticQuery } from "gatsby";
6
+ import MainProvider from "~context/MainProvider";
7
7
  import { getCookie } from "~helpers/cookies";
8
- import Body from '~pages/body';
9
- import HeadData from '~organisms/head';
10
- import { getAPIData } from '~helpers/server-data';
8
+ import Body from "~pages/body";
9
+ import HeadData from "~organisms/head";
10
+ import { getAPIData } from "~helpers/server-data";
11
11
 
12
12
  const AppSSR = ({ pageContext, serverData }) => {
13
-
14
13
  const data = useStaticQuery(graphql`
15
14
  query {
16
15
  translations: allTranslation(filter: {}) {
@@ -27,23 +26,22 @@ const AppSSR = ({ pageContext, serverData }) => {
27
26
 
28
27
  const [isAdmin, setIsAdmin] = useState(false);
29
28
 
30
-
31
29
  useEffect(() => {
32
-
33
- if (
34
- typeof window !== `undefined` &&
35
- getCookie("showAdminBar") === "true"
36
- ) {
30
+ if (typeof window !== `undefined` && getCookie("showAdminBar") === "true") {
37
31
  setIsAdmin(true);
38
32
  }
39
33
  // eslint-disable-next-line react-hooks/exhaustive-deps
40
34
  }, []);
41
35
 
42
-
43
-
44
36
  return (
45
37
  <>
46
- <MainProvider value={{ admin: isAdmin, translations: data.translations, language: pageContext.page.language }} >
38
+ <MainProvider
39
+ value={{
40
+ admin: isAdmin,
41
+ translations: data.translations,
42
+ language: pageContext.page.language,
43
+ }}
44
+ >
47
45
  <Body pageContext={pageContext} serverData={serverData} />
48
46
  </MainProvider>
49
47
  </>
@@ -81,7 +79,7 @@ export default AppSSR;
81
79
  export async function getServerData(props) {
82
80
  // eslint-disable-next-line no-shadow
83
81
  const { pageContext, url, headers } = props;
84
- let res = '';
82
+ let res = "";
85
83
  res = await getAPIData(pageContext.page, url, headers);
86
84
  return res;
87
85
  }
@@ -20,7 +20,7 @@ const AdminBar = ({ page, marketSections, menu, activeMarket }) => {
20
20
  ? getMenuObj(navSection.modules, menu)
21
21
  : null;
22
22
 
23
- const menus = menusConfig(menuObj, footerSection, page, types);
23
+ const menus = menusConfig(menuObj, footerSection, page, types);
24
24
 
25
25
  return (
26
26
  <div className={styles.container}>
@@ -43,7 +43,11 @@ const AdminBar = ({ page, marketSections, menu, activeMarket }) => {
43
43
  </label>
44
44
  </li>
45
45
  <LayoutSection menus={menus} />
46
- <PreviewLink activeMarket={activeMarket} page={page} preview={preview} />
46
+ <PreviewLink
47
+ activeMarket={activeMarket}
48
+ page={page}
49
+ preview={preview}
50
+ />
47
51
  </ul>
48
52
  </div>
49
53
  </div>
@@ -5,17 +5,18 @@ import { FaGripHorizontal } from "@react-icons/all-files/fa/FaGripHorizontal";
5
5
  import styles from "./button.module.scss";
6
6
 
7
7
  const getDMSLink = (module) => {
8
-
9
8
  let hercLink = `${process.env.HERCULES_BACKEND_URL}`;
10
9
  let linkText = ``;
11
10
 
12
11
  switch (module.name) {
13
12
  case "top_list":
14
- hercLink += `toplists/operators/${module.items ? module.items[0].id : ""}`;
13
+ hercLink += `toplists/operators/${
14
+ module.items ? module.items[0].id : ""
15
+ }`;
15
16
  linkText = "Edit Toplist";
16
17
  break;
17
18
  case "bonus":
18
- hercLink += `operators/${module.value?.operator_id}/sites-data/edit/${module.value?.id}`;
19
+ hercLink += `operators/${module.value?.operator_id}/sites-data/edit/${module.value?.id}`;
19
20
  linkText = "Edit Operator";
20
21
  break;
21
22
  default:
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
- import Form from "gatsby-core-theme/src/components/organisms/form";
4
3
  import { FaArrowRight } from "@react-icons/all-files/fa/FaArrowRight";
4
+ import Form from "~organisms/form";
5
5
  import useTranslate from "~hooks/useTranslate/useTranslate";
6
6
  import { contactUsForm } from "../../../constants/forms";
7
7
  import styles from "./contact-form.module.scss";
@@ -47,7 +47,7 @@ const ContactForm = ({
47
47
  validationMessage={validationMessage}
48
48
  path={page?.path}
49
49
  buttonIcon={buttonIcon}
50
- customClass={styles.contactUsForm || ''}
50
+ customClass={styles.contactUsForm || ""}
51
51
  />
52
52
  </div>
53
53
  </div>
@@ -2,8 +2,8 @@
2
2
  import React, { useState, useRef, useEffect } from "react";
3
3
  import PropTypes from "prop-types";
4
4
  import { IoMdClose } from "@react-icons/all-files/io/IoMdClose";
5
- import Link from "gatsby-core-theme/src/hooks/link";
6
- import LazyImage from "gatsby-core-theme/src/hooks/lazy-image";
5
+ import Link from "~hooks/link";
6
+ import LazyImage from "~hooks/lazy-image";
7
7
  import useTranslate from "~hooks/useTranslate/useTranslate";
8
8
  import styles from "./market-dropdown.module.scss";
9
9
 
@@ -59,7 +59,7 @@ const MarketDropdown = ({
59
59
  <div
60
60
  className={`${styles.dropdownContainer} ${
61
61
  isActive && styles.RemoveBorder
62
- } ${customCss ? customCss || '' : ''}`}
62
+ } ${customCss ? customCss || "" : ""}`}
63
63
  ref={containerRef}
64
64
  >
65
65
  <div
@@ -85,7 +85,8 @@ const MarketDropdown = ({
85
85
  />
86
86
  {showMarket && (
87
87
  <span className={styles.marketTitle}>
88
- {(activeMarket.path_prefix !== null && activeMarket.path_prefix !== undefined)
88
+ {activeMarket.path_prefix !== null &&
89
+ activeMarket.path_prefix !== undefined
89
90
  ? activeMarket.path_prefix
90
91
  : defaultMarketText}
91
92
  </span>
@@ -119,8 +120,7 @@ const MarketDropdown = ({
119
120
  const prefix = item[1].path_prefix;
120
121
  /* eslint-disable react-hooks/rules-of-hooks */
121
122
  const marketText =
122
- prefix &&
123
- useTranslate(prefix, marketValues[prefix] || prefix);
123
+ prefix && useTranslate(prefix, marketValues[prefix] || prefix);
124
124
  const path =
125
125
  langPage.length > 0 ? langPage[0].path : prefix || "/";
126
126
 
@@ -139,9 +139,7 @@ const MarketDropdown = ({
139
139
  loading="eager"
140
140
  alt={prefix}
141
141
  />
142
- <span>
143
- {prefix ? marketText : defaultMarketText}
144
- </span>
142
+ <span>{prefix ? marketText : defaultMarketText}</span>
145
143
  </Link>
146
144
  );
147
145
  }
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useContext, useEffect, useRef } from "react";
2
2
  import PropTypes from "prop-types";
3
- import { toggleScroll } from "gatsby-core-theme/src/helpers/scroll";
4
- import { NavigationContext } from "gatsby-core-theme/src/components/organisms/navigation/navigationContext";
3
+ import { toggleScroll } from "~helpers/scroll";
4
+ import { NavigationContext } from "~organisms/navigation/navigationContext";
5
5
  import SpotlightItems from "./notification-items/spotlight";
6
6
  import CardsItems from "./notification-items/cards-v2";
7
7
  import BellIcon from "~images/icons/bell";
@@ -94,4 +94,3 @@ Notifications.propTypes = {
94
94
  };
95
95
 
96
96
  export default Notifications;
97
-
@@ -3,8 +3,8 @@
3
3
  /* eslint-disable no-nested-ternary */
4
4
  import React from "react";
5
5
  import PropTypes from "prop-types";
6
- import { getObjectValue } from "gatsby-core-theme/src/helpers/getters";
7
- import keygen from "gatsby-core-theme/src/helpers/keygen";
6
+ import { getObjectValue } from "~helpers/getters";
7
+ import keygen from "~helpers/keygen";
8
8
  import useTranslate from "~hooks/useTranslate/useTranslate";
9
9
  import { operatorRatings } from "../../../constants/ratings-constant";
10
10
 
@@ -22,7 +22,7 @@ export default function Ratings({
22
22
  ? "operator"
23
23
  : item?.type
24
24
  : type;
25
-
25
+
26
26
  const ratings = operatorRatings[typeCheck] || [];
27
27
 
28
28
  const rangeText = {
@@ -50,8 +50,7 @@ export default function Ratings({
50
50
  if (component && value) {
51
51
  valueDiplayed = component || "-";
52
52
  } else if (fieldValue.includes("volatility")) {
53
- valueDiplayed =
54
- rangeText[getObjectValue(item, fieldValue)] || "-";
53
+ valueDiplayed = rangeText[getObjectValue(item, fieldValue)] || "-";
55
54
  } else {
56
55
  valueDiplayed = value || "-";
57
56
  }
@@ -85,7 +84,9 @@ export default function Ratings({
85
84
  ) : (
86
85
  <>
87
86
  {valueDiplayed}
88
- {(typeof valueDiplayed === 'number' && fieldValue === "rtp" )&& "%"}
87
+ {typeof valueDiplayed === "number" &&
88
+ fieldValue === "rtp" &&
89
+ "%"}
89
90
  </>
90
91
  )}
91
92
  </li>
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable react-hooks/rules-of-hooks */
2
- import React from 'react';
3
- import PropTypes from 'prop-types';
2
+ import React from "react";
3
+ import PropTypes from "prop-types";
4
4
 
5
- import LinkCustom from 'gatsby-core-theme/src/hooks/link';
6
- import useTranslate from '~hooks/useTranslate/useTranslate';
5
+ import LinkCustom from "~hooks/link";
6
+ import useTranslate from "~hooks/useTranslate/useTranslate";
7
7
 
8
8
  const ReviewLink = ({
9
9
  template,
@@ -18,21 +18,26 @@ const ReviewLink = ({
18
18
 
19
19
  let isBonusTemplate = false;
20
20
 
21
- if (['free_bonuses', 'bonus_pages', 'casino_bonus'].includes(template)) {
21
+ if (["free_bonuses", "bonus_pages", "casino_bonus"].includes(template)) {
22
22
  isBonusTemplate = true;
23
23
  }
24
24
 
25
25
  return (
26
- <LinkCustom className={className || ''} nofollow={nofollow} to={reviewPath}>{`${
26
+ <LinkCustom
27
+ className={className || ""}
28
+ nofollow={nofollow}
29
+ to={reviewPath}
30
+ >{`${
27
31
  isBonusTemplate
28
- ? useTranslate('bonus', '[operator_name] Bonus').replace(
29
- '[operator_name]',
32
+ ? useTranslate("bonus", "[operator_name] Bonus").replace(
33
+ "[operator_name]",
30
34
  pageName || operatorName
31
35
  )
32
36
  : useTranslate(
33
- isComparisonTable ? 'read_review_comparison' : 'read_review',
34
- (pageName && '[operator_name]') || (operatorName && '[operator_name] Review')
35
- )?.replace('[operator_name]', pageName || operatorName)
37
+ isComparisonTable ? "read_review_comparison" : "read_review",
38
+ (pageName && "[operator_name]") ||
39
+ (operatorName && "[operator_name] Review")
40
+ )?.replace("[operator_name]", pageName || operatorName)
36
41
  }`}</LinkCustom>
37
42
  );
38
43
  };
@@ -1,15 +1,19 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import Button from 'gatsby-core-theme/src/components/atoms/button/button';
4
- import { FaArrowRight } from '@react-icons/all-files/fa/FaArrowRight';
1
+ import React from "react";
2
+ import PropTypes from "prop-types";
3
+ import { FaArrowRight } from "@react-icons/all-files/fa/FaArrowRight";
4
+ import Button from "~atoms/button/button";
5
5
  import ArticleIcon from "../../../../../images/icons/articleIcon";
6
- import Link from '~hooks/link';
7
- import styles from './article.module.scss';
6
+ import Link from "~hooks/link";
7
+ import styles from "./article.module.scss";
8
8
 
9
- const Article = ({ item = {}, btnText = '', icon = <FaArrowRight title="Right-pointing Arrow Icon" /> }) => (
9
+ const Article = ({
10
+ item = {},
11
+ btnText = "",
12
+ icon = <FaArrowRight title="Right-pointing Arrow Icon" />,
13
+ }) => (
10
14
  <li>
11
- <Link className={styles.row || ''} to={item?.path} title={item.title}>
12
- <ArticleIcon />
15
+ <Link className={styles.row || ""} to={item?.path} title={item.title}>
16
+ <ArticleIcon />
13
17
  <h3 className={styles.operatorTitle}>{item.title}</h3>
14
18
  <Button
15
19
  btnText={btnText}
@@ -1,13 +1,17 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import Button from 'gatsby-core-theme/src/components/atoms/button/button';
4
- import { FaArrowRight } from '@react-icons/all-files/fa/FaArrowRight';
5
- import Link from '~hooks/link';
6
- import styles from './default.module.scss';
1
+ import React from "react";
2
+ import PropTypes from "prop-types";
3
+ import { FaArrowRight } from "@react-icons/all-files/fa/FaArrowRight";
4
+ import Button from "~atoms/button/button";
5
+ import Link from "~hooks/link";
6
+ import styles from "./default.module.scss";
7
7
 
8
- const Default = ({ item = {}, btnText='', icon=<FaArrowRight title="Right-pointing Arrow Icon" /> }) => (
8
+ const Default = ({
9
+ item = {},
10
+ btnText = "",
11
+ icon = <FaArrowRight title="Right-pointing Arrow Icon" />,
12
+ }) => (
9
13
  <li>
10
- <Link to={item?.path} title={item.title} className={styles.row || ''}>
14
+ <Link to={item?.path} title={item.title} className={styles.row || ""}>
11
15
  <h3 className={styles.operatorTitle}>{item.title}</h3>
12
16
  <Button
13
17
  btnText={btnText}
@@ -24,7 +28,7 @@ Default.propTypes = {
24
28
  title: PropTypes.string,
25
29
  }).isRequired,
26
30
  btnText: PropTypes.string,
27
- icon: PropTypes.node,
31
+ icon: PropTypes.node,
28
32
  };
29
33
 
30
34
  export default Default;
@@ -1,23 +1,33 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import { FaArrowRight } from '@react-icons/all-files/fa/FaArrowRight';
4
- import Button from 'gatsby-core-theme/src/components/atoms/button/button';
5
- import LazyImage from '~hooks/lazy-image';
6
- import { imagePrettyUrl } from '~helpers/getters';
7
- import Link from '~hooks/link';
8
- import styles from './game.module.scss';
1
+ import React from "react";
2
+ import PropTypes from "prop-types";
3
+ import { FaArrowRight } from "@react-icons/all-files/fa/FaArrowRight";
4
+ import Button from "~atoms/button/button";
5
+ import LazyImage from "~hooks/lazy-image";
6
+ import { imagePrettyUrl } from "~helpers/getters";
7
+ import Link from "~hooks/link";
8
+ import styles from "./game.module.scss";
9
9
 
10
- const Game = ({ item = {}, width = 56, height = 56, btnText = '', icon = <FaArrowRight title="Right-pointing Arrow Icon" /> }) => {
10
+ const Game = ({
11
+ item = {},
12
+ width = 56,
13
+ height = 56,
14
+ btnText = "",
15
+ icon = <FaArrowRight title="Right-pointing Arrow Icon" />,
16
+ }) => {
11
17
  const { logo } = item;
12
18
 
13
19
  return (
14
20
  <li>
15
- <Link to={item?.path} title={item.title} className={styles.row || ''}>
21
+ <Link to={item?.path} title={item.title} className={styles.row || ""}>
16
22
  <LazyImage
17
23
  className={styles.gameImage}
18
24
  width={width}
19
25
  height={height}
20
- src={logo ? imagePrettyUrl(logo, width, height) : '/images/default-slot.jpg'}
26
+ src={
27
+ logo
28
+ ? imagePrettyUrl(logo, width, height)
29
+ : "/images/default-slot.jpg"
30
+ }
21
31
  alt={item.title}
22
32
  />
23
33
  <h3 className={styles.gameTitle}>{item.title}</h3>
@@ -42,7 +52,7 @@ Game.propTypes = {
42
52
  width: PropTypes.number,
43
53
  height: PropTypes.number,
44
54
  btnText: PropTypes.string,
45
- icon: PropTypes.node,
55
+ icon: PropTypes.node,
46
56
  };
47
57
 
48
58
  export default Game;
@@ -1,25 +1,33 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import { FaArrowRight } from '@react-icons/all-files/fa/FaArrowRight';
4
- import Button from 'gatsby-core-theme/src/components/atoms/button/button';
5
- import LazyImage from '~hooks/lazy-image';
6
- import { imagePrettyUrl } from '~helpers/getters';
7
- import Link from '~hooks/link';
8
- import styles from './operator.module.scss';
1
+ import React from "react";
2
+ import PropTypes from "prop-types";
3
+ import { FaArrowRight } from "@react-icons/all-files/fa/FaArrowRight";
4
+ import Button from "~atoms/button/button";
5
+ import LazyImage from "~hooks/lazy-image";
6
+ import { imagePrettyUrl } from "~helpers/getters";
7
+ import Link from "~hooks/link";
8
+ import styles from "./operator.module.scss";
9
9
 
10
- const Operator = ({ item = {}, width = 56, height = 56, btnText = '', icon = <FaArrowRight title="Right-pointing Arrow Icon" /> }) => {
10
+ const Operator = ({
11
+ item = {},
12
+ width = 56,
13
+ height = 56,
14
+ btnText = "",
15
+ icon = <FaArrowRight title="Right-pointing Arrow Icon" />,
16
+ }) => {
11
17
  const { logo } = item;
12
18
 
13
19
  return (
14
20
  <li>
15
- <Link to={item?.path} title={item.title} className={styles.row || ''}>
16
- {logo && <LazyImage
17
- className={styles.operatorImage}
18
- width={width}
19
- height={height}
20
- src={imagePrettyUrl(logo, width, height)}
21
- alt={item.title}
22
- />}
21
+ <Link to={item?.path} title={item.title} className={styles.row || ""}>
22
+ {logo && (
23
+ <LazyImage
24
+ className={styles.operatorImage}
25
+ width={width}
26
+ height={height}
27
+ src={imagePrettyUrl(logo, width, height)}
28
+ alt={item.title}
29
+ />
30
+ )}
23
31
  <h3 className={styles.operatorTitle}>{item.title}</h3>
24
32
  <Button
25
33
  to={item?.path}
@@ -42,7 +50,7 @@ Operator.propTypes = {
42
50
  width: PropTypes.number,
43
51
  height: PropTypes.number,
44
52
  btnText: PropTypes.string,
45
- icon: PropTypes.node,
53
+ icon: PropTypes.node,
46
54
  };
47
55
 
48
56
  export default Operator;
@@ -73,7 +73,13 @@ export default function Bonus({
73
73
  tracker={module?.type || "main"}
74
74
  modulePosition={modulePosition}
75
75
  />
76
- {!tncFixed && <Tnc isFixed={tncFixed} operator={operator} />}
76
+ {!tncFixed && (
77
+ <Tnc
78
+ isFixed={tncFixed}
79
+ operator={operator}
80
+ tracker={module?.type || "main"}
81
+ />
82
+ )}
77
83
  </div>
78
84
  <OperatorCta
79
85
  operator={operator}
@@ -85,7 +91,14 @@ export default function Bonus({
85
91
  gtmClass="bonus-operator-cta-gtm"
86
92
  />
87
93
  </div>
88
- {tncFixed && <Tnc isFixed={tncFixed} operator={operator} />}
94
+
95
+ {tncFixed && (
96
+ <Tnc
97
+ isFixed={tncFixed}
98
+ operator={operator}
99
+ tracker={module?.type || "main"}
100
+ />
101
+ )}
89
102
  </div>
90
103
  </div>
91
104
  );