nestiq-component-library 1.1.46 → 1.1.48
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/dist/components/MessagePopup/MessagePopUp.d.ts +2 -2
- package/dist/components/NewPropertyCard/NewPropertyCard.d.ts +5 -0
- package/dist/index.es.js +68 -65
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +68 -65
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/MessagePopup/MessagePopUp.tsx +8 -8
- package/src/components/NewPropertyCard/NewPropertyCard.tsx +18 -6
|
@@ -10,7 +10,7 @@ import arrowLeft from "../../assets/Images/card-arrow-left.svg";
|
|
|
10
10
|
import arrowRight from "../../assets/Images/card-arrow-right.svg";
|
|
11
11
|
import iconLayers from "../../assets/Images/layer_icon.svg";
|
|
12
12
|
import FloorPlanPopup from "../FloorPlanPopup/FloorPlanPopup";
|
|
13
|
-
|
|
13
|
+
import MessagePopUp from "../MessagePopup/MessagePopUp";
|
|
14
14
|
import SharePopup from "../SharePopup/SharePopup";
|
|
15
15
|
|
|
16
16
|
|
|
@@ -32,13 +32,18 @@ interface PopupProps {
|
|
|
32
32
|
askingPrice: number;
|
|
33
33
|
};
|
|
34
34
|
expose: {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
title: string;
|
|
36
|
+
};
|
|
37
37
|
pictures: { contentUrl: string }[];
|
|
38
38
|
};
|
|
39
39
|
onClick: any;
|
|
40
40
|
baseUrl: string;
|
|
41
41
|
title: string;
|
|
42
|
+
userData: {
|
|
43
|
+
firstname: string;
|
|
44
|
+
lastname: string;
|
|
45
|
+
};
|
|
46
|
+
handleSendMessage: any;
|
|
42
47
|
}
|
|
43
48
|
export default function PropertyCard(props: PopupProps) {
|
|
44
49
|
const [liked, setLiked] = useState(false);
|
|
@@ -65,14 +70,20 @@ export default function PropertyCard(props: PopupProps) {
|
|
|
65
70
|
};
|
|
66
71
|
const handleMessagPopUp = () => {
|
|
67
72
|
setMessagPopUp(true);
|
|
73
|
+
console.log("messagePopUp", messagePopUp);
|
|
68
74
|
};
|
|
69
75
|
const handleSharePopUp = () => {
|
|
70
76
|
setSharePopUp(true);
|
|
77
|
+
console.log("sharePopUp", sharePopUp);
|
|
71
78
|
};
|
|
72
79
|
const handleClosePopup = () =>{
|
|
73
80
|
setFloorPlan(false);
|
|
74
81
|
setMessagPopUp(false);
|
|
75
82
|
}
|
|
83
|
+
const messagePopupClose = () =>{
|
|
84
|
+
setMessagPopUp(false);
|
|
85
|
+
}
|
|
86
|
+
|
|
76
87
|
const handleArrowClickInMainImage = (direction: string) => {
|
|
77
88
|
if (!props.property || pictureUrls.length === 0) return;
|
|
78
89
|
|
|
@@ -264,12 +275,13 @@ export default function PropertyCard(props: PopupProps) {
|
|
|
264
275
|
onCloseClick={() => setFloorPlan(false)}
|
|
265
276
|
/>
|
|
266
277
|
)}
|
|
267
|
-
{
|
|
278
|
+
{messagePopUp && (
|
|
268
279
|
<MessagePopUp
|
|
269
280
|
onClick={() => setMessagPopUp(false)}
|
|
270
|
-
|
|
281
|
+
userData={props.userData}
|
|
282
|
+
handleSendMessage={props.handleSendMessage}
|
|
271
283
|
/>
|
|
272
|
-
)}
|
|
284
|
+
)}
|
|
273
285
|
{sharePopUp && <SharePopup onClick={() => setSharePopUp(false)} />}
|
|
274
286
|
</div>
|
|
275
287
|
);
|