gatsby-matrix-theme 7.1.11 → 7.1.12

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,16 @@
1
+ ## [7.1.12](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v7.1.11...v7.1.12) (2022-05-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * failing submit ([1445544](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1445544c9b434723e567d9eaee88429470729a36))
7
+ * remove privacy text after submit ([89eb82d](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/89eb82d92a8d451e546d78726208e9a428cd0e35))
8
+ * return back props ([d644bb0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/d644bb0b2d95b0c1accfa51bd416cd0beebc2b7c))
9
+
10
+
11
+ * Merge branch 'tm-2828-add-signup-form-bacom' into 'master' ([c6b42c5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c6b42c527229a4b7645f47fda84f619f0e5e69d0))
12
+ * Merge branch 'tm-2828-add-signup-form-bacom' into 'master' ([4c999bf](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/4c999bf749fa6770bbdb2937882ee3dd43fad91f))
13
+
1
14
  ## [7.1.11](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v7.1.10...v7.1.11) (2022-05-24)
2
15
 
3
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "7.1.11",
3
+ "version": "7.1.12",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -9,8 +9,6 @@ import styles from './newsletter-form.module.scss';
9
9
 
10
10
  const NewsletterForm = ({
11
11
  handleApi,
12
- mainText,
13
- subscribeText,
14
12
  setErr,
15
13
  redirectUrl,
16
14
  privacyText,
@@ -23,8 +21,8 @@ const NewsletterForm = ({
23
21
  textAboveEmail: 'Email address',
24
22
  textAboveName: 'Your name',
25
23
  textAbovePhoneNumber: 'Phone number',
26
- mainText,
27
- subscribeText,
24
+ mainText: 'You get more than 405 free spins',
25
+ subscribeText: 'Subscribe to our newsletter and get more than 405 free spins instantly.',
28
26
  redirectUrl,
29
27
  privacyText,
30
28
  },
@@ -125,17 +123,13 @@ const NewsletterForm = ({
125
123
 
126
124
  return (
127
125
  <>
128
- {toggleSubscribe ? (
129
- formText.thankYouText && <p className={styles.thankYouText}>Thank you</p>
130
- ) : (
131
- <p className={styles.maintext}>{formText.mainText}</p>
132
- )}
133
- {toggleSubscribe ? (
126
+ {!toggleSubscribe && <p className={styles.maintext}>{formText.mainText}</p>}
127
+ {!toggleSubscribe && (
134
128
  <p
135
129
  dangerouslySetInnerHTML={{ __html: formText.subscribeText }}
136
130
  className={styles.subscribe}
137
131
  />
138
- ) : null}
132
+ )}
139
133
  {!error && !toggleSubscribe ? (
140
134
  <form ref={form} onSubmit={handelSubmit}>
141
135
  {formText.textAboveName ? (
@@ -198,8 +192,6 @@ NewsletterForm.propTypes = {
198
192
  }),
199
193
  handleApi: PropTypes.func,
200
194
  setErr: PropTypes.bool,
201
- mainText: PropTypes.string,
202
- subscribeText: PropTypes.string,
203
195
  redirectUrl: PropTypes.string,
204
196
  privacyText: PropTypes.string,
205
197
  };
@@ -80,8 +80,6 @@ const Newsletter = ({
80
80
  : styles.newsletter
81
81
  }
82
82
  >
83
- {mainText ? <p className={styles.maintext}>{mainText}</p> : null}
84
- {subscribeText ? <p className={styles.subscribe}>{subscribeText}</p> : null}
85
83
  <Form
86
84
  placeholderName={placeholderName}
87
85
  textAboveName={textAboveName}
@@ -91,10 +89,10 @@ const Newsletter = ({
91
89
  textAbovePhoneNumber={textAbovePhoneNumber}
92
90
  buttonText={buttonText}
93
91
  redirectUrl={redirectUrl}
92
+ privacyText={privacyText}
93
+ mainText={mainText}
94
+ subscribeText={subscribeText}
94
95
  />
95
- {privacyText ? (
96
- <p className={styles.privacytext} dangerouslySetInnerHTML={{ __html: privacyText }} />
97
- ) : null}
98
96
  {!footer ? (
99
97
  <MdClose className={styles.closeBtn} onClick={() => setToggleNewsletter(false)} />
100
98
  ) : null}
@@ -104,8 +102,6 @@ const Newsletter = ({
104
102
  };
105
103
 
106
104
  Newsletter.propTypes = {
107
- mainText: PropTypes.string,
108
- subscribeText: PropTypes.string,
109
105
  placeholderName: PropTypes.string,
110
106
  textAboveName: PropTypes.string,
111
107
  placeholderEmail: PropTypes.string,
@@ -115,6 +111,8 @@ Newsletter.propTypes = {
115
111
  textAboveEmail: PropTypes.string,
116
112
  placeholderPhoneNumber: PropTypes.string,
117
113
  textAbovePhoneNumber: PropTypes.string,
114
+ mainText: PropTypes.string,
115
+ subscribeText: PropTypes.string,
118
116
  page: PropTypes.shape({
119
117
  path: PropTypes.string,
120
118
  template: PropTypes.string,
@@ -345,4 +345,4 @@
345
345
 
346
346
 
347
347
 
348
- window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.7aedec23.iframe.bundle.js"></script><script src="152.cf98088f.iframe.bundle.js"></script><script src="main.72c7cc66.iframe.bundle.js"></script></body></html>
348
+ window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.7aedec23.iframe.bundle.js"></script><script src="152.cf98088f.iframe.bundle.js"></script><script src="main.b2d4b93f.iframe.bundle.js"></script></body></html>