gatsby-core-theme 35.0.7 → 35.0.8

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
+ ## [35.0.8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v35.0.7...v35.0.8) (2024-07-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * added market title prop ([bfc144b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/bfc144b3d7e36c0f0b75a75aa83482140a051b81))
7
+
8
+
9
+ * Merge branch 'tm-4071-market-dropdown' into 'master' ([e849117](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/e849117487f71977360a041b10e4df1d0728c096))
10
+ * Merge branch 'master' into tm-4071-market-dropdown ([25e7809](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/25e7809422c884de103a3205e9906fc0fd9e0267))
11
+
1
12
  ## [35.0.7](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v35.0.6...v35.0.7) (2024-07-26)
2
13
 
3
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "35.0.7",
3
+ "version": "35.0.8",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -7,7 +7,11 @@ import LazyImage from "gatsby-core-theme/src/hooks/lazy-image";
7
7
  import useTranslate from "~hooks/useTranslate/useTranslate";
8
8
  import styles from "./market-dropdown.module.scss";
9
9
 
10
- const MarketDropdown = ({ pageContext, defaultMarket = "US (English)" }) => {
10
+ const MarketDropdown = ({
11
+ pageContext,
12
+ defaultMarket = "US (English)",
13
+ showMarket = false
14
+ }) => {
11
15
  const { allMarkets, page } = pageContext;
12
16
  const containerRef = useRef(null);
13
17
  const dropdownRef = useRef(null);
@@ -72,6 +76,7 @@ const MarketDropdown = ({ pageContext, defaultMarket = "US (English)" }) => {
72
76
  loading="eager"
73
77
  alt={activeMarket.market}
74
78
  />
79
+ {showMarket && <span className={styles.marketTitle}>{activeMarket.path_prefix !== null ? activeMarket.path_prefix : defaultMarket}</span>}
75
80
  </div>
76
81
  </div>
77
82
  <div
@@ -144,6 +149,7 @@ MarketDropdown.propTypes = {
144
149
  }),
145
150
  section: PropTypes.shape({}),
146
151
  defaultMarket: PropTypes.string,
152
+ showMarket: PropTypes.bool
147
153
  };
148
154
 
149
155
  export default MarketDropdown;
@@ -91,6 +91,8 @@
91
91
  }
92
92
  }
93
93
 
94
+ .marketTitle{text-transform: capitalize}
95
+
94
96
  .marketLink {
95
97
  @include flex-align(center, flex-start);
96
98