gatsby-matrix-theme 2.3.3 → 2.3.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 +59 -0
- package/package.json +2 -2
- package/src/components/atoms/cards/article-card/index.js +1 -1
- package/src/components/atoms/cards/base-card/base-card.module.scss +5 -0
- package/src/components/atoms/cards/game-card/index.js +1 -1
- package/src/components/atoms/cards/payment-method-card/index.js +1 -1
- package/src/components/atoms/cards/software-provider-card/index.js +1 -1
- package/src/components/atoms/search/autocomplete/article.js +9 -2
- package/src/components/atoms/search/autocomplete/game.js +9 -2
- package/src/components/atoms/search/autocomplete/operator.js +9 -2
- package/src/components/atoms/search/autocomplete/payment_methods.js +9 -2
- package/src/components/atoms/search/autocomplete/software_provider.js +9 -2
- package/src/components/atoms/sitemap/index.js +9 -2
- package/src/components/molecules/newsletter/index.js +4 -2
- package/src/gatsby-core-theme/components/molecules/content/content.module.scss +5 -0
- package/src/gatsby-core-theme/components/molecules/search/index.js +1 -1
- package/src/gatsby-core-theme/components/organisms/cards/index.js +7 -1
- package/src/gatsby-core-theme/components/organisms/navigation/index.js +7 -3
- package/src/gatsby-core-theme/components/organisms/search/index.js +6 -6
- package/src/gatsby-core-theme/components/pages/body/index.js +1 -1
- package/src/gatsby-core-theme/pages/sitemap/index.js +12 -8
- package/src/helpers/splitSearchQuery.js +3 -0
- package/src/hooks/tabs/index.js +3 -0
- package/storybook/.ci.yml +1 -1
- package/storybook/public/{0.990fdfd8.iframe.bundle.js → 0.32053ec6.iframe.bundle.js} +1 -1
- package/storybook/public/{5.0f8f7a5e.iframe.bundle.js → 5.3bdb3f72.iframe.bundle.js} +3 -3
- package/storybook/public/{5.0f8f7a5e.iframe.bundle.js.LICENSE.txt → 5.3bdb3f72.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/5.3bdb3f72.iframe.bundle.js.map +1 -0
- package/storybook/public/{6.b9f58061.iframe.bundle.js → 6.d5dd48d0.iframe.bundle.js} +1 -1
- package/storybook/public/{7.9640e9e5.iframe.bundle.js → 7.99f26915.iframe.bundle.js} +1 -1
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/main.b9b80be9.iframe.bundle.js +1 -0
- package/storybook/public/{runtime~main.758b565b.iframe.bundle.js → runtime~main.76a8717d.iframe.bundle.js} +1 -1
- package/storybook/public/vendors~main.364411ac.iframe.bundle.js +7 -0
- package/storybook/public/{vendors~main.ca497037.iframe.bundle.js.LICENSE.txt → vendors~main.364411ac.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook/public/vendors~main.364411ac.iframe.bundle.js.map +1 -0
- package/storybook/public/5.0f8f7a5e.iframe.bundle.js.map +0 -1
- package/storybook/public/main.8e8aef54.iframe.bundle.js +0 -1
- package/storybook/public/vendors~main.ca497037.iframe.bundle.js +0 -7
- package/storybook/public/vendors~main.ca497037.iframe.bundle.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,62 @@
|
|
|
1
|
+
## [2.3.7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.3.6...v2.3.7) (2021-11-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* correction to typo ([b50be3c](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b50be3c5e42f2560f5850f6b9b8e624d56790fe0))
|
|
7
|
+
* force load lazy images on tab change ([fa06336](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/fa06336730891bed815cbf1867d4ca870d257fbb))
|
|
8
|
+
* general fixes ([5aef217](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5aef217afd001c09c8baa51ce75dc087a28f8294))
|
|
9
|
+
* highlight search query on auto complete ([2aee5da](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/2aee5da1c4e5b4d790ee1a1c5a687f5f790d244b))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* Merge branch 'tm-2478-search' into 'master' ([a86ac37](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a86ac379825d5599b066d9f13b081c8ff7b8f4b2))
|
|
13
|
+
|
|
14
|
+
## [2.3.6](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.3.5...v2.3.6) (2021-11-18)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* storybook pipeline ([29e7f34](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/29e7f34ca9b04a011c2784d9a7e8c930fd900cfa))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Config
|
|
23
|
+
|
|
24
|
+
* updated core theme version ([0552c2a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0552c2a93a4cf6716d2bd7be05e7b9f9ce58c5f5))
|
|
25
|
+
|
|
26
|
+
## [2.3.5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.3.4...v2.3.5) (2021-11-16)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* menu and sitemap fixes ([1ab7026](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1ab70262191e5129630e2cdd9d802a837f5b9f7c))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
* Merge branch 'tm-2593-2587-menu-sitemap-fixes' into 'master' ([e79806b](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e79806b8abaaadc9f3caa2ca9bc0ff755cd75ce7))
|
|
35
|
+
|
|
36
|
+
## [2.3.4](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.3.3...v2.3.4) (2021-11-15)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* replaced title tag of cards h2 to span ([ba1c695](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/ba1c695ef4af00b05aed04152762bdeedc0572db))
|
|
42
|
+
* stack table styling ([f133647](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f13364772731c70422509482cf683da8577e0ea2))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Code Refactoring
|
|
46
|
+
|
|
47
|
+
* update newsletter hide on scroll functionality ([773b9da](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/773b9da4defef0c6001fe718dc29fe4f99a1ebd4))
|
|
48
|
+
* update newsletter hide on scroll functionality ([1319fe3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1319fe3fb096cd6d9ea3182cbe8cead6ffd5a9c4))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Config
|
|
52
|
+
|
|
53
|
+
* updated core theme version and content styling fixes ([f7b79f5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f7b79f511a8a76bbcec596505833fb9350b35aa5))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/matrix-theme ([f6ac4ae](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f6ac4ae3bb416dc5d0ab52a5b891d7d6a03c995a))
|
|
57
|
+
* Merge branch 'tm-2492-update-newsletter-hide-on-scroll' into 'master' ([75de895](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/75de89531ef472e96d1ee309ccc514c4635e2d5c))
|
|
58
|
+
* Merge branch 'TM-255-incorrect-heading' into 'master' ([5b0d348](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5b0d3487365ceefaa2e4f8ba22ef80b70d44670a))
|
|
59
|
+
|
|
1
60
|
## [2.3.3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v2.3.2...v2.3.3) (2021-11-12)
|
|
2
61
|
|
|
3
62
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.7",
|
|
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": "^1.5
|
|
34
|
+
"gatsby-core-theme": "^1.6.5",
|
|
35
35
|
"gatsby-image": "^3.3.0",
|
|
36
36
|
"gatsby-plugin-image": "^1.3.1",
|
|
37
37
|
"gatsby-plugin-postcss": "^4.3.0",
|
|
@@ -47,7 +47,7 @@ const ArticleCard = ({ item }) => {
|
|
|
47
47
|
)}
|
|
48
48
|
<div className={`${styles.cardContent} ${featured && styles.featured}`}>
|
|
49
49
|
<Link to={path} className="article-card-gtm">
|
|
50
|
-
<
|
|
50
|
+
<span className={styles.cardTitle}>{title}</span>
|
|
51
51
|
</Link>
|
|
52
52
|
<Button
|
|
53
53
|
to={path}
|
|
@@ -32,7 +32,7 @@ const GameCard = ({ item, button_text = 'play_now' }) => {
|
|
|
32
32
|
)}
|
|
33
33
|
<div className={`${styles.cardContent} ${featured && styles.featured}`}>
|
|
34
34
|
<Link to={path} className="game-card-gtm">
|
|
35
|
-
<
|
|
35
|
+
<span className={styles.cardTitle}>{title}</span>
|
|
36
36
|
</Link>
|
|
37
37
|
<div className={styles.cardMeta}>
|
|
38
38
|
<div className={styles.cardProvider}>{relation && relation?.game_provider?.name}</div>
|
|
@@ -22,7 +22,7 @@ const PaymentMethodCard = ({ item, showTitle = true, showDesc = true }) => {
|
|
|
22
22
|
</Link>
|
|
23
23
|
{showTitle && (
|
|
24
24
|
<Link className={`${styles.links} payment-method-card-gtm`} to={path}>
|
|
25
|
-
<
|
|
25
|
+
<span className={styles.title}>{title}</span>
|
|
26
26
|
</Link>
|
|
27
27
|
)}
|
|
28
28
|
</div>
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
/* eslint-disable react/no-danger */
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
import { GrFormNext } from 'react-icons/gr';
|
|
4
5
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
6
|
+
import { splitSearchQuery } from '../../../../helpers/splitSearchQuery';
|
|
5
7
|
|
|
6
|
-
const Article = ({ item = {}, Button = <GrFormNext
|
|
8
|
+
const Article = ({ item = {}, Button = <GrFormNext />, searchQuery }) => (
|
|
7
9
|
<Link to={item.path} className="article-gtm">
|
|
8
|
-
<h1
|
|
10
|
+
<h1
|
|
11
|
+
dangerouslySetInnerHTML={{
|
|
12
|
+
__html: splitSearchQuery(item.title, searchQuery),
|
|
13
|
+
}}
|
|
14
|
+
/>
|
|
9
15
|
{Button}
|
|
10
16
|
</Link>
|
|
11
17
|
);
|
|
@@ -15,6 +21,7 @@ Article.propTypes = {
|
|
|
15
21
|
title: PropTypes.string,
|
|
16
22
|
}).isRequired,
|
|
17
23
|
Button: PropTypes.func,
|
|
24
|
+
searchQuery: PropTypes.string,
|
|
18
25
|
};
|
|
19
26
|
|
|
20
27
|
export default Article;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
/* eslint-disable react/no-danger */
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
import { GrFormNext } from 'react-icons/gr';
|
|
4
5
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
6
|
+
import { splitSearchQuery } from '../../../../helpers/splitSearchQuery';
|
|
5
7
|
|
|
6
|
-
const Game = ({ item = {}, Button = <GrFormNext
|
|
8
|
+
const Game = ({ item = {}, Button = <GrFormNext />, searchQuery }) => (
|
|
7
9
|
<Link to={item.path} className="game-gtm">
|
|
8
|
-
<h1
|
|
10
|
+
<h1
|
|
11
|
+
dangerouslySetInnerHTML={{
|
|
12
|
+
__html: splitSearchQuery(item.title, searchQuery),
|
|
13
|
+
}}
|
|
14
|
+
/>
|
|
9
15
|
{Button}
|
|
10
16
|
</Link>
|
|
11
17
|
);
|
|
@@ -15,6 +21,7 @@ Game.propTypes = {
|
|
|
15
21
|
title: PropTypes.string,
|
|
16
22
|
}).isRequired,
|
|
17
23
|
Button: PropTypes.func,
|
|
24
|
+
searchQuery: PropTypes.string,
|
|
18
25
|
};
|
|
19
26
|
|
|
20
27
|
export default Game;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
/* eslint-disable react/no-danger */
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
import { GrFormNext } from 'react-icons/gr';
|
|
4
5
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
6
|
+
import { splitSearchQuery } from '../../../../helpers/splitSearchQuery';
|
|
5
7
|
|
|
6
|
-
const Operator = ({ item = {}, Button = <GrFormNext
|
|
8
|
+
const Operator = ({ item = {}, Button = <GrFormNext />, searchQuery }) => (
|
|
7
9
|
<Link to={`/${item.path}`} className="operator-gtm">
|
|
8
|
-
<h1
|
|
10
|
+
<h1
|
|
11
|
+
dangerouslySetInnerHTML={{
|
|
12
|
+
__html: splitSearchQuery(item.title, searchQuery),
|
|
13
|
+
}}
|
|
14
|
+
/>
|
|
9
15
|
{Button}
|
|
10
16
|
</Link>
|
|
11
17
|
);
|
|
@@ -16,6 +22,7 @@ Operator.propTypes = {
|
|
|
16
22
|
path: PropTypes.string,
|
|
17
23
|
}).isRequired,
|
|
18
24
|
Button: PropTypes.func,
|
|
25
|
+
searchQuery: PropTypes.string,
|
|
19
26
|
};
|
|
20
27
|
|
|
21
28
|
export default Operator;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
/* eslint-disable react/no-danger */
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
import { GrFormNext } from 'react-icons/gr';
|
|
4
5
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
6
|
+
import { splitSearchQuery } from '../../../../helpers/splitSearchQuery';
|
|
5
7
|
|
|
6
|
-
const PaymentMethods = ({ item = {}, Button = <GrFormNext
|
|
8
|
+
const PaymentMethods = ({ item = {}, Button = <GrFormNext />, searchQuery }) => (
|
|
7
9
|
<Link to={item.path} className="payment-method-gtm">
|
|
8
|
-
<h1
|
|
10
|
+
<h1
|
|
11
|
+
dangerouslySetInnerHTML={{
|
|
12
|
+
__html: splitSearchQuery(item.title, searchQuery),
|
|
13
|
+
}}
|
|
14
|
+
/>
|
|
9
15
|
{Button}
|
|
10
16
|
</Link>
|
|
11
17
|
);
|
|
@@ -15,6 +21,7 @@ PaymentMethods.propTypes = {
|
|
|
15
21
|
title: PropTypes.string,
|
|
16
22
|
}).isRequired,
|
|
17
23
|
Button: PropTypes.func,
|
|
24
|
+
searchQuery: PropTypes.string,
|
|
18
25
|
};
|
|
19
26
|
|
|
20
27
|
export default PaymentMethods;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
/* eslint-disable react/no-danger */
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
import { GrFormNext } from 'react-icons/gr';
|
|
4
5
|
import Link from 'gatsby-core-theme/src/hooks/link';
|
|
6
|
+
import { splitSearchQuery } from '../../../../helpers/splitSearchQuery';
|
|
5
7
|
|
|
6
|
-
const SoftwareProvider = ({ item = {}, Button = <GrFormNext
|
|
8
|
+
const SoftwareProvider = ({ item = {}, Button = <GrFormNext />, searchQuery }) => (
|
|
7
9
|
<Link to={item.path} className="software-provider-gtm">
|
|
8
|
-
<h1
|
|
10
|
+
<h1
|
|
11
|
+
dangerouslySetInnerHTML={{
|
|
12
|
+
__html: splitSearchQuery(item.title, searchQuery),
|
|
13
|
+
}}
|
|
14
|
+
/>
|
|
9
15
|
{Button}
|
|
10
16
|
</Link>
|
|
11
17
|
);
|
|
@@ -15,6 +21,7 @@ SoftwareProvider.propTypes = {
|
|
|
15
21
|
title: PropTypes.string,
|
|
16
22
|
}).isRequired,
|
|
17
23
|
Button: PropTypes.func,
|
|
24
|
+
searchQuery: PropTypes.string,
|
|
18
25
|
};
|
|
19
26
|
|
|
20
27
|
export default SoftwareProvider;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/* eslint-disable array-callback-return */
|
|
2
2
|
/* eslint-disable react/forbid-prop-types */
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useContext } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { BiSitemap } from 'react-icons/bi';
|
|
6
6
|
import { IoMdLink } from 'react-icons/io';
|
|
7
7
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
8
8
|
import Masonry from 'react-masonry-css';
|
|
9
|
+
import { Context } from 'gatsby-core-theme/src/context/TranslationsProvider';
|
|
10
|
+
import { translate } from 'gatsby-core-theme/src/helpers/getters';
|
|
9
11
|
import styles from './sitemap.module.scss';
|
|
10
12
|
import Link from '~hooks/link';
|
|
11
13
|
|
|
@@ -15,10 +17,15 @@ const Sitemap = ({
|
|
|
15
17
|
templateIcon = <BiSitemap />,
|
|
16
18
|
linkIcon = <IoMdLink />,
|
|
17
19
|
}) => {
|
|
20
|
+
const { translations } = useContext(Context) || {};
|
|
18
21
|
const market = Object.keys(sitemapData)[0];
|
|
19
22
|
|
|
20
23
|
const getTemplateName = (template) => {
|
|
21
|
-
const templateName =
|
|
24
|
+
const templateName = translate(
|
|
25
|
+
translations,
|
|
26
|
+
templates[template].short_name,
|
|
27
|
+
templates[template].short_name.replace('_', ' ')
|
|
28
|
+
);
|
|
22
29
|
const templatePages = sitemapData[market][template];
|
|
23
30
|
const templatePagesCount = templatePages && templatePages.length;
|
|
24
31
|
|
|
@@ -22,6 +22,7 @@ const Newsletter = ({
|
|
|
22
22
|
buttonText = 'Hent dine freespins',
|
|
23
23
|
formAction = '',
|
|
24
24
|
newsletterListId = '',
|
|
25
|
+
hideButtonOnScroll = true,
|
|
25
26
|
footer = false,
|
|
26
27
|
}) => {
|
|
27
28
|
const [toggleNewsetter, setToggleNewsletter] = useState(false);
|
|
@@ -61,7 +62,7 @@ const Newsletter = ({
|
|
|
61
62
|
>
|
|
62
63
|
{!footer && page && page.template !== 'operator_review' && (
|
|
63
64
|
<Button
|
|
64
|
-
active={!!(!toggleNewsetter && !toggleOnScroll)}
|
|
65
|
+
active={!!(!toggleNewsetter && (!hideButtonOnScroll || !toggleOnScroll))}
|
|
65
66
|
text={openBtnText}
|
|
66
67
|
toggleNewsLetter={() => setToggleNewsletter(!toggleNewsetter)}
|
|
67
68
|
gtmClass="newsletter-gtm btn-cta"
|
|
@@ -70,7 +71,7 @@ const Newsletter = ({
|
|
|
70
71
|
<div
|
|
71
72
|
className={
|
|
72
73
|
!footer
|
|
73
|
-
? toggleNewsetter && !toggleOnScroll
|
|
74
|
+
? toggleNewsetter && (!hideButtonOnScroll || !toggleOnScroll)
|
|
74
75
|
? `${styles.form} ${styles.active}`
|
|
75
76
|
: styles.form
|
|
76
77
|
: styles.newsletter
|
|
@@ -111,6 +112,7 @@ Newsletter.propTypes = {
|
|
|
111
112
|
path: PropTypes.string,
|
|
112
113
|
template: PropTypes.string,
|
|
113
114
|
}),
|
|
115
|
+
hideButtonOnScroll: PropTypes.bool,
|
|
114
116
|
footer: PropTypes.bool,
|
|
115
117
|
};
|
|
116
118
|
|
|
@@ -75,7 +75,7 @@ const Search = ({
|
|
|
75
75
|
|
|
76
76
|
// Get the child by the given type - a data object is required
|
|
77
77
|
const getChildType = (item, type) =>
|
|
78
|
-
children(item).props.children.find((child) => child.props.type === type);
|
|
78
|
+
children(item, searchQuery).props.children.find((child) => child.props.type === type);
|
|
79
79
|
|
|
80
80
|
// Prepare search result for auto complete
|
|
81
81
|
const loadAutoComplete = useCallback(() => {
|
|
@@ -16,7 +16,13 @@ export default (props) => {
|
|
|
16
16
|
import(`../../../../components/molecules/toplist/row/variant-one`)
|
|
17
17
|
);
|
|
18
18
|
customCardComponent = (prop) => (
|
|
19
|
-
<ToplistRow
|
|
19
|
+
<ToplistRow
|
|
20
|
+
page={prop.item}
|
|
21
|
+
item={prop.item.relation}
|
|
22
|
+
layout="grid"
|
|
23
|
+
tracker="main"
|
|
24
|
+
number={prop.number}
|
|
25
|
+
/>
|
|
20
26
|
);
|
|
21
27
|
} else {
|
|
22
28
|
customCardComponent = loadable(() =>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import NavigationProvider from 'gatsby-core-theme/src/components/organisms/navigation/navigationContext.js';
|
|
4
|
-
import { getSiteName } from 'gatsby-core-theme/src/helpers/getters';
|
|
5
4
|
import styles from 'gatsby-core-theme/src/components/organisms/navigation/navigation.module.scss';
|
|
6
5
|
import Link from '~hooks/link';
|
|
7
6
|
import Menu from '~molecules/menu';
|
|
@@ -23,7 +22,7 @@ const Navigation = ({
|
|
|
23
22
|
animation: 'collapse',
|
|
24
23
|
closeHandler: null,
|
|
25
24
|
stopScrollOnOpen: true,
|
|
26
|
-
canOpenAllSubMenus:
|
|
25
|
+
canOpenAllSubMenus: true,
|
|
27
26
|
subMenuDropDownButton: true,
|
|
28
27
|
},
|
|
29
28
|
desktop: {
|
|
@@ -61,7 +60,12 @@ const Navigation = ({
|
|
|
61
60
|
<nav className={styles.nav} style={{ justifyContent: logoPosition }} ref={navRef}>
|
|
62
61
|
<NavigationProvider>
|
|
63
62
|
<Link className={`${styles.logo} main-menu-gtm logo-cta`} to="/" onClick={onClickHandler}>
|
|
64
|
-
<img
|
|
63
|
+
<img
|
|
64
|
+
alt={process.env.GATSBY_SITE_NAME}
|
|
65
|
+
src={logo}
|
|
66
|
+
width={logoWidth}
|
|
67
|
+
height={logoHeight}
|
|
68
|
+
/>
|
|
65
69
|
</Link>
|
|
66
70
|
{showMenu && (
|
|
67
71
|
<>
|
|
@@ -95,22 +95,22 @@ const SearchForm = ({ className, searchIcon, iconWidth = 24, iconHeight = 24 })
|
|
|
95
95
|
showViewResultsText: false,
|
|
96
96
|
}}
|
|
97
97
|
>
|
|
98
|
-
{(item) => (
|
|
98
|
+
{(item, searchQuery) => (
|
|
99
99
|
<>
|
|
100
100
|
<div type="operator">
|
|
101
|
-
<Operator item={item} />
|
|
101
|
+
<Operator item={item} searchQuery={searchQuery} />
|
|
102
102
|
</div>
|
|
103
103
|
<div type="game">
|
|
104
|
-
<Game item={item} />
|
|
104
|
+
<Game item={item} searchQuery={searchQuery} />
|
|
105
105
|
</div>
|
|
106
106
|
<div type="article">
|
|
107
|
-
<Article item={item} />
|
|
107
|
+
<Article item={item} searchQuery={searchQuery} />
|
|
108
108
|
</div>
|
|
109
109
|
<div type="payment_method">
|
|
110
|
-
<PaymentMethods item={item} />
|
|
110
|
+
<PaymentMethods item={item} searchQuery={searchQuery} />
|
|
111
111
|
</div>
|
|
112
112
|
<div type="software_provider">
|
|
113
|
-
<SoftwareProvider item={item} />
|
|
113
|
+
<SoftwareProvider item={item} searchQuery={searchQuery} />
|
|
114
114
|
</div>
|
|
115
115
|
</>
|
|
116
116
|
)}
|
|
@@ -2,18 +2,22 @@
|
|
|
2
2
|
/* eslint-disable react/forbid-prop-types */
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
+
import TranslationsProvider from 'gatsby-core-theme/src/context/TranslationsProvider';
|
|
5
6
|
import Body from '~pages/body';
|
|
6
7
|
import Head from '~organisms/head';
|
|
7
8
|
import SitemapLinks from '../../../components/atoms/sitemap';
|
|
8
9
|
|
|
9
|
-
const Sitemap = ({ pageContext }) =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
const Sitemap = ({ pageContext }) => {
|
|
11
|
+
const { translations } = pageContext.page;
|
|
12
|
+
return (
|
|
13
|
+
<TranslationsProvider value={{ translations }}>
|
|
14
|
+
<Head page={pageContext.page} siteInfo={pageContext.siteInfo} />
|
|
15
|
+
<Body pageContext={pageContext}>
|
|
16
|
+
<SitemapLinks sitemapData={pageContext.sitemapData} templates={pageContext.templates} />
|
|
17
|
+
</Body>
|
|
18
|
+
</TranslationsProvider>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
17
21
|
|
|
18
22
|
Sitemap.propTypes = {
|
|
19
23
|
pageContext: PropTypes.shape({
|
package/src/hooks/tabs/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/* eslint-disable import/no-extraneous-dependencies */
|
|
1
2
|
import React, { useContext, useState } from 'react';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
4
|
+
import { forceCheck } from 'react-lazyload';
|
|
3
5
|
import { translate } from 'gatsby-core-theme/src/helpers/getters';
|
|
4
6
|
import { Context } from 'gatsby-core-theme/src/context/TranslationsProvider';
|
|
5
7
|
import TabList from './tab/tab-list';
|
|
@@ -89,6 +91,7 @@ const Tabs = ({
|
|
|
89
91
|
};
|
|
90
92
|
|
|
91
93
|
function onClickTabItem(tabId) {
|
|
94
|
+
forceCheck();
|
|
92
95
|
setActiveTab(tabId);
|
|
93
96
|
}
|
|
94
97
|
return (
|
package/storybook/.ci.yml
CHANGED