homeflowjs 0.10.14 → 0.10.15
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/actions/user.actions.js
CHANGED
@@ -30,6 +30,8 @@ export const fetchUser = () => (dispatch) => {
|
|
30
30
|
// if the user is logged in, fetch saved searches and properties
|
31
31
|
dispatch(fetchSavedProperties());
|
32
32
|
dispatch(fetchSavedSearches());
|
33
|
+
|
34
|
+
Homeflow.kickEvent('user_signed_in');
|
33
35
|
} else {
|
34
36
|
// load saved properties and searches from localStorage
|
35
37
|
const serializedSavedSearches = localStorage.getItem('savedSearches');
|
package/package.json
CHANGED
@@ -30,6 +30,7 @@ const SavePropertyButton = (props) => {
|
|
30
30
|
notify(notificationMessage || 'Saved property removed.', 'success');
|
31
31
|
} else {
|
32
32
|
addSavedProperty(propertyId);
|
33
|
+
Homeflow.kickEvent('saved_property_added', propertyId);
|
33
34
|
notify(notificationMessage || 'Property saved.', 'success');
|
34
35
|
}
|
35
36
|
};
|
@@ -77,9 +77,10 @@ const ReactSelect = (props) => {
|
|
77
77
|
bedOptionText,
|
78
78
|
} = props;
|
79
79
|
|
80
|
-
const bedOptions = bedValues.map((bedValue) => (
|
81
|
-
|
82
|
-
|
80
|
+
const bedOptions = bedValues.map((bedValue) => ({
|
81
|
+
value: bedValue,
|
82
|
+
label: `${bedValue} ${bedOptionText}${bedValue > 1 ? 's' : ''}`,
|
83
|
+
}));
|
83
84
|
|
84
85
|
if (value) bedOptions.unshift({ value: '', label: `No ${type} beds` });
|
85
86
|
|
@@ -31,6 +31,7 @@ const SaveSearchButton = (props) => {
|
|
31
31
|
notify((showNotification && notificationMessage) ? notificationMessage : 'Saved search removed.', 'success');
|
32
32
|
} else {
|
33
33
|
addSavedSearchAsync(search);
|
34
|
+
Homeflow.kickEvent('saved_search_added');
|
34
35
|
notify(notificationMessage || 'Search saved.', 'success');
|
35
36
|
}
|
36
37
|
};
|