homeflowjs 0.9.4 → 0.9.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeflowjs",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "description": "JavaScript toolkit for Homeflow themes",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,6 +17,9 @@ const SavedSearch = (props) => {
17
17
  deleteButtonClass,
18
18
  buttonSpanClass,
19
19
  userLoggedIn,
20
+ frequencyLabel,
21
+ visitSearchLabel,
22
+ removeSearchLabel,
20
23
  } = props;
21
24
 
22
25
  const visitSearch = (e) => {
@@ -41,7 +44,7 @@ const SavedSearch = (props) => {
41
44
  <div className="saved-search__body">
42
45
  {userLoggedIn && (
43
46
  <>
44
- Email me matching properties:
47
+ {frequencyLabel}
45
48
  <select
46
49
  className={`saved-search__frequency ${selectClass}`}
47
50
  onChange={handleFrequencyChange}
@@ -60,7 +63,7 @@ const SavedSearch = (props) => {
60
63
  onClick={visitSearch}
61
64
  className={visitButtonClass}
62
65
  >
63
- <span className={buttonSpanClass}>Visit</span>
66
+ <span className={buttonSpanClass}>{visitSearchLabel}</span>
64
67
  </button>
65
68
 
66
69
  <button
@@ -68,7 +71,7 @@ const SavedSearch = (props) => {
68
71
  onClick={removeSearch}
69
72
  className={deleteButtonClass}
70
73
  >
71
- <span className={buttonSpanClass}>Remove</span>
74
+ <span className={buttonSpanClass}>{removeSearchLabel}</span>
72
75
  </button>
73
76
  </div>
74
77
  </div>
@@ -84,6 +87,9 @@ SavedSearch.propTypes = {
84
87
  deleteButtonClass: PropTypes.string,
85
88
  buttonSpanClass: PropTypes.string,
86
89
  userLoggedIn: PropTypes.bool.isRequired,
90
+ frequencyLabel: PropTypes.string,
91
+ visitSearchLabel: PropTypes.string,
92
+ removeSearchLabel: PropTypes.string,
87
93
  };
88
94
 
89
95
  SavedSearch.defaultProps = {
@@ -91,7 +97,10 @@ SavedSearch.defaultProps = {
91
97
  visitButtonClass: '',
92
98
  deleteButtonClass: '',
93
99
  buttonSpanClass: '',
94
- }
100
+ frequencyLabel: 'Email me matching properties:',
101
+ visitSearchLabel: 'Visit',
102
+ removeSearchLabel: 'Remove',
103
+ };
95
104
 
96
105
  const mapStateToProps = (state) => ({
97
106
  userLoggedIn: !!state.user.currentUser.user_id,