nestiq-component-library 1.1.46 → 1.1.47

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.
@@ -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
- // import MessagePopUp from "../Popup/Popup";
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
- title: string;
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);
@@ -73,6 +78,10 @@ export default function PropertyCard(props: PopupProps) {
73
78
  setFloorPlan(false);
74
79
  setMessagPopUp(false);
75
80
  }
81
+ const messagePopupClose = () =>{
82
+ setMessagPopUp(false);
83
+ }
84
+
76
85
  const handleArrowClickInMainImage = (direction: string) => {
77
86
  if (!props.property || pictureUrls.length === 0) return;
78
87
 
@@ -264,12 +273,13 @@ export default function PropertyCard(props: PopupProps) {
264
273
  onCloseClick={() => setFloorPlan(false)}
265
274
  />
266
275
  )}
267
- {/* {messagePopUp && (
276
+ {messagePopUp && (
268
277
  <MessagePopUp
269
278
  onClick={() => setMessagPopUp(false)}
270
- property={props.property}
279
+ userData={props.userData}
280
+ handleSendMessage={props.handleSendMessage}
271
281
  />
272
- )} */}
282
+ )}
273
283
  {sharePopUp && <SharePopup onClick={() => setSharePopUp(false)} />}
274
284
  </div>
275
285
  );