gatsby-core-theme 37.0.2 → 37.0.4

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,34 @@
1
+ ## [37.0.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v37.0.3...v37.0.4) (2024-08-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * removed log and added eslint rule ([ff7d6cf](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/ff7d6cffaeebdb4e73e27eb1dfe087779cab1ad2))
7
+
8
+ ## [37.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v37.0.2...v37.0.3) (2024-08-27)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * ip in newsletter ([78e6b98](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/78e6b985ea28c4838c800da4efa422dc343655c4))
14
+ * ip in newsletter ([708d4a3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/708d4a35cb32cde4fb36369c3a7ff34bbaf9664a))
15
+ * ip in newsletter ([aaef920](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/aaef92026be8d519076d0c90595a02429a8bb275))
16
+ * ip in newsletter ([31cf0f1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/31cf0f1a24fbb6fb8fe24d47cab2ddb0cef617db))
17
+ * ip in newsletter ([9a01ecf](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9a01ecf9bf94c928cac8c5546ecb95eba450691b))
18
+ * ip in newsletter ([eb5d7a1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/eb5d7a1265f93bd03b374d65ad8ee666c5b767a6))
19
+ * lighthouse pipelines ([eb47028](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/eb470282f26aad393cb83f7ef560216c63072579))
20
+ * lighthouse pipelines ([33db85e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/33db85e1c015f6e39c809f66c06b1b397d41cd6a))
21
+ * lighthouse pipelines ([58dd193](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/58dd19356809ef65223d0eb9ed749b9a8242e20a))
22
+ * lighthouse pipelines ([40b0211](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/40b0211d189b89dee445370f95f3f88adcbb28ec))
23
+ * lighthouse pipelines ([43a4a20](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/43a4a206d9577977863f8fab75ef374b175d765a))
24
+ * software for cards v2 filters ([0bb6da7](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/0bb6da73605d36be2130f449983cb083c2a9ebe8))
25
+ * software for cards v2 filters ([2ed6e6b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/2ed6e6b491a86f2f268f45fd150727ac1b88ad8e))
26
+
27
+
28
+ ### Code Refactoring
29
+
30
+ * changes to notification bell svg ([0ca9edb](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/0ca9edb383e2cfc906d0ddf08dcc0a207e9ad744))
31
+
1
32
  ## [37.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v37.0.1...v37.0.2) (2024-08-23)
2
33
 
3
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "37.0.2",
3
+ "version": "37.0.4",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -23,7 +23,6 @@ const MarketDropdown = ({
23
23
  const selectMarketText = useTranslate("select_market", "Select Market");
24
24
  const defaultMarketText = useTranslate("defaultMarket", defaultMarket);
25
25
  const activeMarket = allMarkets[page.market] || "gb_en";
26
- console.log(activeMarket);
27
26
  const marketOptions = Object.keys(allMarkets).map((key) => [
28
27
  key,
29
28
  allMarkets[key],
@@ -34,7 +33,6 @@ const MarketDropdown = ({
34
33
  };
35
34
 
36
35
  activeMarket.market = page.market;
37
- console.log(activeMarket);
38
36
 
39
37
  useEffect(() => {
40
38
  function handleClickOutside(event) {
@@ -1,9 +1,9 @@
1
1
  import React, { useState, useContext, useEffect, useRef } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
4
3
  import { toggleScroll } from 'gatsby-core-theme/src/helpers/scroll';
5
4
  import { NavigationContext } from 'gatsby-core-theme/src/components/organisms/navigation/navigationContext';
6
5
  import NotificationItems from './notification-items';
6
+ import BellIcon from '~images/icons/bell';
7
7
  import styles from './notifications.module.scss';
8
8
 
9
9
  const Notifications = ({ section }) => {
@@ -58,12 +58,7 @@ const Notifications = ({ section }) => {
58
58
  aria-label="Notification Bell Icon"
59
59
  tabIndex={0}
60
60
  >
61
- <LazyImage
62
- alt="Notification Bell"
63
- width={26}
64
- height={26}
65
- src="/images/bell.svg"
66
- />
61
+ <BellIcon />
67
62
  </div>
68
63
  {openNotification && (
69
64
  <NotificationItems module={getNotifications()} onClose={() => notificationActions()} />
@@ -5,6 +5,7 @@ import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
5
5
  import keygen from 'gatsby-core-theme/src/helpers/keygen';
6
6
  import Link from 'gatsby-core-theme/src/hooks/link';
7
7
  import useTranslate from '~hooks/useTranslate/useTranslate';
8
+ import CloseIcon from '~images/icons/close';
8
9
  import styles from './notification-items.module.scss';
9
10
 
10
11
  const NotificationItems = ({ module, onClose }) => {
@@ -46,13 +47,13 @@ const NotificationItems = ({ module, onClose }) => {
46
47
  <div className={styles.notificationsContainer || ''}>
47
48
  <span>
48
49
  {useTranslate('latestUpdates', 'Latest Updates')}
49
- <button type='button' onClick={onClose} className={styles.close || ''}>
50
- <LazyImage
51
- alt="Notification Bell"
52
- width={16}
53
- height={16}
54
- src="/images/close.svg"
55
- />
50
+ <button
51
+ type='button'
52
+ onClick={onClose}
53
+ className={styles.close || ''}
54
+ aria-label="Close notifications"
55
+ >
56
+ <CloseIcon />
56
57
  </button>
57
58
  </span>
58
59
  {items?.length ? (
@@ -25,11 +25,13 @@ const NewsletterForm = ({
25
25
  const [error, setError] = useState(false);
26
26
 
27
27
  const getData = async () => {
28
- await fetch("https://geolocation-db.com/json/", {
28
+ await fetch("https://api.ipify.org/?format=json", {
29
29
  method: "GET",
30
30
  })
31
31
  .then((response) => response.json())
32
- .then((data) => setIP(data.IPv4))
32
+ .then((data) => {
33
+ setIP(data.ip)
34
+ })
33
35
  .catch((err) => {
34
36
  console.log(`Error ${err}`);
35
37
  });
@@ -55,6 +55,7 @@ export const pickRelationKeys = {
55
55
  event: ['event'],
56
56
  tournament: ['tournaments'],
57
57
  operator: [
58
+ 'software',
58
59
  'market',
59
60
  'logo',
60
61
  'one_liner',
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
 
4
- export default function BellIcon({ width = 24, height = 24, color = '#1C1A28' }) {
4
+ export default function BellIcon({ width = 26, height = 26, color = '#1C1A28' }) {
5
5
  return (
6
6
  <svg
7
7
  role="img"
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+
4
+ export default function CloseIcon({ width = 16, height = 16, color = '#64646d' }) {
5
+ return (
6
+ <svg width={width} height={height} viewBox={`0 0 ${width} ${height}`} fill="none" xmlns="http://www.w3.org/2000/svg">
7
+ <title id="closeIcon">CloseIcon</title>
8
+ <path d="M8.94004 8L13.14 3.80667C13.2656 3.68113 13.3361 3.51087 13.3361 3.33333C13.3361 3.1558 13.2656 2.98554 13.14 2.86C13.0145 2.73447 12.8442 2.66394 12.6667 2.66394C12.4892 2.66394 12.3189 2.73447 12.1934 2.86L8.00004 7.06L3.80671 2.86C3.68117 2.73447 3.51091 2.66394 3.33337 2.66394C3.15584 2.66394 2.98558 2.73447 2.86004 2.86C2.7345 2.98554 2.66398 3.1558 2.66398 3.33333C2.66398 3.51087 2.7345 3.68113 2.86004 3.80667L7.06004 8L2.86004 12.1933C2.79756 12.2553 2.74796 12.329 2.71411 12.4103C2.68027 12.4915 2.66284 12.5787 2.66284 12.6667C2.66284 12.7547 2.68027 12.8418 2.71411 12.9231C2.74796 13.0043 2.79756 13.078 2.86004 13.14C2.92202 13.2025 2.99575 13.2521 3.07699 13.2859C3.15823 13.3198 3.24537 13.3372 3.33337 13.3372C3.42138 13.3372 3.50852 13.3198 3.58976 13.2859C3.671 13.2521 3.74473 13.2025 3.80671 13.14L8.00004 8.94L12.1934 13.14C12.2554 13.2025 12.3291 13.2521 12.4103 13.2859C12.4916 13.3198 12.5787 13.3372 12.6667 13.3372C12.7547 13.3372 12.8419 13.3198 12.9231 13.2859C13.0043 13.2521 13.0781 13.2025 13.14 13.14C13.2025 13.078 13.2521 13.0043 13.286 12.9231C13.3198 12.8418 13.3372 12.7547 13.3372 12.6667C13.3372 12.5787 13.3198 12.4915 13.286 12.4103C13.2521 12.329 13.2025 12.2553 13.14 12.1933L8.94004 8Z" fill={color} />
9
+ </svg>
10
+ );
11
+ }
12
+
13
+ CloseIcon.propTypes = {
14
+ width: PropTypes.number,
15
+ height: PropTypes.number,
16
+ color: PropTypes.string,
17
+ };
@@ -1,3 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M8.94004 8L13.14 3.80667C13.2656 3.68113 13.3361 3.51087 13.3361 3.33333C13.3361 3.1558 13.2656 2.98554 13.14 2.86C13.0145 2.73447 12.8442 2.66394 12.6667 2.66394C12.4892 2.66394 12.3189 2.73447 12.1934 2.86L8.00004 7.06L3.80671 2.86C3.68117 2.73447 3.51091 2.66394 3.33337 2.66394C3.15584 2.66394 2.98558 2.73447 2.86004 2.86C2.7345 2.98554 2.66398 3.1558 2.66398 3.33333C2.66398 3.51087 2.7345 3.68113 2.86004 3.80667L7.06004 8L2.86004 12.1933C2.79756 12.2553 2.74796 12.329 2.71411 12.4103C2.68027 12.4915 2.66284 12.5787 2.66284 12.6667C2.66284 12.7547 2.68027 12.8418 2.71411 12.9231C2.74796 13.0043 2.79756 13.078 2.86004 13.14C2.92202 13.2025 2.99575 13.2521 3.07699 13.2859C3.15823 13.3198 3.24537 13.3372 3.33337 13.3372C3.42138 13.3372 3.50852 13.3198 3.58976 13.2859C3.671 13.2521 3.74473 13.2025 3.80671 13.14L8.00004 8.94L12.1934 13.14C12.2554 13.2025 12.3291 13.2521 12.4103 13.2859C12.4916 13.3198 12.5787 13.3372 12.6667 13.3372C12.7547 13.3372 12.8419 13.3198 12.9231 13.2859C13.0043 13.2521 13.0781 13.2025 13.14 13.14C13.2025 13.078 13.2521 13.0043 13.286 12.9231C13.3198 12.8418 13.3372 12.7547 13.3372 12.6667C13.3372 12.5787 13.3198 12.4915 13.286 12.4103C13.2521 12.329 13.2025 12.2553 13.14 12.1933L8.94004 8Z" fill="#64646D"/>
3
- </svg>