gatsby-core-theme 44.27.0 → 44.28.0

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,13 @@
1
+ # [44.28.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.27.0...v44.28.0) (2026-06-17)
2
+
3
+
4
+ * Merge branch 'update-newsletter' into 'master' ([e1b2c7e](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/e1b2c7e0490c9ef1c929049e20d7ff28d1d71b9d))
5
+
6
+
7
+ ### Features
8
+
9
+ * update newsletter button ([063907c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/063907c743eea01d39155344c750831a42d0de5d))
10
+
1
11
  # [44.27.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.26.2...v44.27.0) (2026-06-16)
2
12
 
3
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.27.0",
3
+ "version": "44.28.0",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -6,13 +6,14 @@ import PropTypes from 'prop-types';
6
6
 
7
7
  import styles from './newsletter-button.module.scss';
8
8
 
9
- const NewsletterButton = ({ text = 'Bonus alert', toggleNewsLetter, active = true }) => {
9
+ const NewsletterButton = ({ text = 'Bonus alert', toggleNewsLetter, active = true, icon = null }) => {
10
10
  return (
11
11
  <button
12
12
  onClick={toggleNewsLetter}
13
13
  className={`${styles?.button || ''} ${active ? styles.active || '' : ''}`}
14
14
  >
15
- {text}
15
+ {icon}
16
+ {text && (icon ? <span>{text}</span> : text)}
16
17
  </button>
17
18
  );
18
19
  };
@@ -21,6 +22,7 @@ NewsletterButton.propTypes = {
21
22
  text: PropTypes.string,
22
23
  toggleNewsLetter: PropTypes.func,
23
24
  active: PropTypes.bool,
25
+ icon: PropTypes.node,
24
26
  };
25
27
 
26
28
  export default NewsletterButton;