homeflowjs 0.13.39 → 0.13.41

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.
@@ -7,7 +7,7 @@ const customMarketingText = Homeflow.get('custom_marketing_text');
7
7
  const customAccountText = Homeflow.get('custom_account_text');
8
8
  const customTermsText = Homeflow.get('custom_terms_text');
9
9
 
10
- const MarketingPreferences = ({ lead, updateState }) => (
10
+ const MarketingPreferences = ({ lead, updateState, termsRequired = false }) => (
11
11
  <div className="marketing-preferences">
12
12
  <div className="optin_container__opt_in_marketing marketing-preferences__section">
13
13
  <Checkbox
@@ -64,6 +64,9 @@ const MarketingPreferences = ({ lead, updateState }) => (
64
64
  {' '}
65
65
  <a href="/pages/cookies">Cookies Policy</a>
66
66
  .
67
+ {termsRequired && (
68
+ '*'
69
+ )}
67
70
  </span>
68
71
  )}
69
72
  </Checkbox>
@@ -149,7 +149,7 @@ const YourDetailsStep = ({
149
149
  {valuationReasonSelect()}
150
150
  </div>
151
151
 
152
- <MarketingPreferences lead={lead} updateState={updateState} />
152
+ <MarketingPreferences lead={lead} updateState={updateState} termsRequired/>
153
153
 
154
154
  <button
155
155
  type="submit"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeflowjs",
3
- "version": "0.13.39",
3
+ "version": "0.13.41",
4
4
  "sideEffects": [
5
5
  "modal/**/*",
6
6
  "user/default-profile/**/*",
@@ -34,8 +34,8 @@ class SearchForm extends Component {
34
34
  }
35
35
 
36
36
  if (defaultChannel) setSearchField({ channel: defaultChannel });
37
- if (customSalesRedirect) setSearchField({ customSalesRedirect: true });
38
- if (customLettingsRedirect) setSearchField({ customLettingsRedirect: true });
37
+ if (customSalesRedirect) setSearchField({ customSalesRedirect: customSalesRedirect });
38
+ if (customLettingsRedirect) setSearchField({ customLettingsRedirect: customLettingsRedirect });
39
39
  }
40
40
 
41
41
  handleSubmit(e) {