gatsby-core-theme 5.1.0 → 5.1.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,14 @@
|
|
|
1
|
+
## [5.1.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v5.1.0...v5.1.1) (2022-03-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* test ([75ad3f0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/75ad3f0c3a0d12a0355f3c632a2a209f6b19dc95))
|
|
7
|
+
* tracker links redirect logic ([3694cfc](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3694cfc6b208fc07f223a1ddc054f2a2b50dea1c))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
* Merge branch 'tracker-links-fix' into 'master' ([7394d4d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/7394d4d9d947cc0b7ab4e50e92de912687b6a4ba))
|
|
11
|
+
|
|
1
12
|
# [5.1.0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v5.0.2...v5.1.0) (2022-03-07)
|
|
2
13
|
|
|
3
14
|
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ describe('header component', () => {
|
|
|
14
14
|
expect(container.querySelectorAll('.headerContent')).toHaveLength(1);
|
|
15
15
|
|
|
16
16
|
// Inner HTML
|
|
17
|
-
expect(container.querySelectorAll('p')).toHaveLength(
|
|
17
|
+
expect(container.querySelectorAll('p')).toHaveLength(2);
|
|
18
18
|
expect(container.querySelectorAll('i')).toHaveLength(1);
|
|
19
19
|
|
|
20
20
|
// Testing image
|
|
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import Button from '~atoms/button';
|
|
4
4
|
import LazyImage from '~hooks/lazy-image';
|
|
5
5
|
import { prettyTracker } from '~helpers/getters';
|
|
6
|
+
import { generateTrackerLink } from '~helpers/generators';
|
|
6
7
|
import { isMobileDevice } from '~helpers/device-detect';
|
|
7
8
|
import styles from './tracker.module.scss';
|
|
8
9
|
|
|
@@ -26,7 +27,8 @@ const Tracker = ({
|
|
|
26
27
|
let tracker = '';
|
|
27
28
|
for (let i = 0; i < trackerLinks.length; i += 1) {
|
|
28
29
|
const trackerLink = trackerLinks[i].toLowerCase().replace(' ', '_');
|
|
29
|
-
|
|
30
|
+
|
|
31
|
+
if (generateTrackerLink(operator, trackerLink) === path) {
|
|
30
32
|
tracker =
|
|
31
33
|
operator.links[
|
|
32
34
|
Object.keys(operator.links).find((key) => key.toLowerCase() === trackerLink.toLowerCase())
|