homeflowjs 1.0.72 → 1.0.73
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
@@ -16,6 +16,7 @@ const PropertiesDisplay = ({
|
|
16
16
|
infiniteScroll,
|
17
17
|
InfiniteScrollLoader,
|
18
18
|
inserts,
|
19
|
+
removeLastInsert,
|
19
20
|
noResultsMessage,
|
20
21
|
includePreviousBtn,
|
21
22
|
previousBtnClasses,
|
@@ -143,7 +144,8 @@ const PropertiesDisplay = ({
|
|
143
144
|
insertablePropertiesIDList.includes(property.property_id)
|
144
145
|
) {
|
145
146
|
const findResult = propertiesInsertsMap.get(property.property_id);
|
146
|
-
|
147
|
+
|
148
|
+
if (findResult && !removeLastInsert) {
|
147
149
|
return (
|
148
150
|
<React.Fragment key={property.property_id}>
|
149
151
|
<Item property={property} onClick={() => visitPropertyUpdate(property.property_id)} {...other} />
|
@@ -151,7 +153,7 @@ const PropertiesDisplay = ({
|
|
151
153
|
</React.Fragment>
|
152
154
|
);
|
153
155
|
}
|
154
|
-
}
|
156
|
+
}
|
155
157
|
|
156
158
|
return (
|
157
159
|
<Item
|
@@ -201,11 +203,13 @@ PropertiesDisplay.propTypes = {
|
|
201
203
|
includePreviousBtn: PropTypes.bool.isRequired,
|
202
204
|
InfiniteScrollLoader: PropTypes.func,
|
203
205
|
inserts: PropTypes.array,
|
206
|
+
removeLastInsert: PropTypes.bool,
|
204
207
|
noResultsMessage: PropTypes.node,
|
205
208
|
};
|
206
209
|
|
207
210
|
PropertiesDisplay.defaultProps = {
|
208
211
|
inserts: [],
|
212
|
+
removeLastInsert: false,
|
209
213
|
InfiniteScrollLoader: null,
|
210
214
|
includePreviousBtn: false,
|
211
215
|
noResultsMessage: <p>There were no properties matching your search.</p>,
|
@@ -27,6 +27,7 @@ const PropertyResults = ({
|
|
27
27
|
infiniteScrollLoader,
|
28
28
|
noMap,
|
29
29
|
inserts,
|
30
|
+
removeLastInsert,
|
30
31
|
noResultsMessage,
|
31
32
|
...other
|
32
33
|
}) => (
|
@@ -39,6 +40,7 @@ const PropertyResults = ({
|
|
39
40
|
infiniteScroll={infiniteScroll}
|
40
41
|
InfiniteScrollLoader={infiniteScrollLoader}
|
41
42
|
inserts={inserts}
|
43
|
+
removeLastInsert={removeLastInsert}
|
42
44
|
noResultsMessage={noResultsMessage}
|
43
45
|
{...other}
|
44
46
|
/>
|
@@ -51,6 +53,7 @@ const PropertyResults = ({
|
|
51
53
|
infiniteScroll={infiniteScroll}
|
52
54
|
InfiniteScrollLoader={infiniteScrollLoader}
|
53
55
|
inserts={inserts}
|
56
|
+
removeLastInsert={removeLastInsert}
|
54
57
|
noResultsMessage={noResultsMessage}
|
55
58
|
{...other}
|
56
59
|
/>
|
@@ -63,6 +66,7 @@ const PropertyResults = ({
|
|
63
66
|
displayType="map"
|
64
67
|
infiniteScroll={infiniteScroll}
|
65
68
|
inserts={inserts}
|
69
|
+
removeLastInsert={removeLastInsert}
|
66
70
|
InfiniteScrollLoader={infiniteScrollLoader}
|
67
71
|
noResultsMessage={noResultsMessage}
|
68
72
|
{...other}
|
@@ -80,6 +84,7 @@ const PropertyResults = ({
|
|
80
84
|
infiniteScroll={infiniteScroll}
|
81
85
|
InfiniteScrollLoader={infiniteScrollLoader}
|
82
86
|
inserts={inserts}
|
87
|
+
removeLastInsert={removeLastInsert}
|
83
88
|
noResultsMessage={noResultsMessage}
|
84
89
|
{...other}
|
85
90
|
/>
|
@@ -92,6 +97,7 @@ const PropertyResults = ({
|
|
92
97
|
infiniteScroll={infiniteScroll}
|
93
98
|
InfiniteScrollLoader={infiniteScrollLoader}
|
94
99
|
inserts={inserts}
|
100
|
+
removeLastInsert={removeLastInsert}
|
95
101
|
noResultsMessage={noResultsMessage}
|
96
102
|
{...other}
|
97
103
|
/>
|
@@ -109,6 +115,7 @@ PropertyResults.propTypes = {
|
|
109
115
|
infiniteScroll: PropTypes.bool,
|
110
116
|
infiniteScrollLoader: PropTypes.elementType,
|
111
117
|
noMap: PropTypes.bool,
|
118
|
+
removeLastInsert: PropTypes.bool,
|
112
119
|
inserts: PropTypes.array,
|
113
120
|
};
|
114
121
|
|
@@ -118,6 +125,7 @@ PropertyResults.defaultProps = {
|
|
118
125
|
MapItem: null,
|
119
126
|
defaultView: 'list',
|
120
127
|
infiniteScroll: false,
|
128
|
+
removeLastInsert: false,
|
121
129
|
infiniteScrollLoader: null,
|
122
130
|
noMap: false,
|
123
131
|
inserts: [],
|