gatsby-core-theme 32.0.3 → 32.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,13 @@
|
|
|
1
|
+
## [32.0.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v32.0.3...v32.0.4) (2024-05-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Code Refactoring
|
|
5
|
+
|
|
6
|
+
* changes to newsletter ([eeb67ce](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/eeb67ceca6fc4fea273d3c73e36af4e817ac52ab))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'tm-4397-newsletter' into 'master' ([1d9353d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1d9353ddc255164bc2c86a8e740c96a23c85ce29))
|
|
10
|
+
|
|
1
11
|
## [32.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v32.0.2...v32.0.3) (2024-05-30)
|
|
2
12
|
|
|
3
13
|
|
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ const NewsletterForm = ({
|
|
|
15
15
|
setErr,
|
|
16
16
|
path,
|
|
17
17
|
country,
|
|
18
|
+
showLabels = true,
|
|
18
19
|
}) => {
|
|
19
20
|
const [ip, setIP] = useState('');
|
|
20
21
|
const [error, setError] = useState(false);
|
|
@@ -89,6 +90,7 @@ const NewsletterForm = ({
|
|
|
89
90
|
customError
|
|
90
91
|
buttonLabel={submitText}
|
|
91
92
|
path={path}
|
|
93
|
+
showLabels={showLabels}
|
|
92
94
|
/>
|
|
93
95
|
);
|
|
94
96
|
};
|
|
@@ -100,6 +102,7 @@ NewsletterForm.propTypes = {
|
|
|
100
102
|
setErr: PropTypes.bool,
|
|
101
103
|
path: PropTypes.string,
|
|
102
104
|
country: PropTypes.string,
|
|
105
|
+
showLabels: PropTypes.bool,
|
|
103
106
|
};
|
|
104
107
|
|
|
105
108
|
export default NewsletterForm;
|
|
@@ -7,7 +7,12 @@ import Button from './toggle-button/index';
|
|
|
7
7
|
import NewsletterForm from './form/index';
|
|
8
8
|
import styles from './newsletter.module.scss';
|
|
9
9
|
|
|
10
|
-
const Newsletter = ({
|
|
10
|
+
const Newsletter = ({
|
|
11
|
+
page,
|
|
12
|
+
openBtnText = 'Unlock Bonuses',
|
|
13
|
+
isSticky = false,
|
|
14
|
+
showLabels = true,
|
|
15
|
+
}) => {
|
|
11
16
|
const [toggleNewsetter, setToggleNewsletter] = useState(false);
|
|
12
17
|
const [isClicked, setIsClicked] = useState(false);
|
|
13
18
|
const country = page?.market?.split('_')[0].toUpperCase();
|
|
@@ -53,6 +58,7 @@ const Newsletter = ({ page, openBtnText = 'Unlock Bonuses', isSticky = false })
|
|
|
53
58
|
market={page?.market}
|
|
54
59
|
path={page?.path}
|
|
55
60
|
redirectUrl={redirectUrl}
|
|
61
|
+
showLabels={showLabels}
|
|
56
62
|
/>
|
|
57
63
|
{isSticky && (
|
|
58
64
|
<MdClose
|
|
@@ -76,6 +82,7 @@ Newsletter.propTypes = {
|
|
|
76
82
|
market: PropTypes.string,
|
|
77
83
|
}),
|
|
78
84
|
isSticky: PropTypes.bool,
|
|
85
|
+
showLabels: PropTypes.bool,
|
|
79
86
|
};
|
|
80
87
|
|
|
81
88
|
export default Newsletter;
|
|
@@ -21,6 +21,16 @@ export default {
|
|
|
21
21
|
defaultValue: null,
|
|
22
22
|
description: 'The page object.',
|
|
23
23
|
},
|
|
24
|
+
showLabels: {
|
|
25
|
+
name: 'showLabels',
|
|
26
|
+
type: { name: 'boolean', required: false },
|
|
27
|
+
defaultValue: true,
|
|
28
|
+
description: 'Show form field labels',
|
|
29
|
+
table: {
|
|
30
|
+
type: { summary: 'boolean' },
|
|
31
|
+
defaultValue: { summary: true },
|
|
32
|
+
},
|
|
33
|
+
},
|
|
24
34
|
},
|
|
25
35
|
parameters: {
|
|
26
36
|
docs: {
|