nestiq-component-library 1.1.55 → 1.1.57

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.
@@ -35,7 +35,7 @@ interface PopupProps {
35
35
  firstname: any;
36
36
  lastname: any;
37
37
  themesList: any;
38
- handleDataFromChild: any;
38
+ sendData: any;
39
39
  }
40
40
  export default function PropertyCard(props: PopupProps): React.JSX.Element;
41
41
  export {};
package/dist/index.es.js CHANGED
@@ -519,13 +519,12 @@ function MessagePopUp(props) {
519
519
  var _f = useState(""), messageText = _f[0], setMessageText = _f[1];
520
520
  var _g = useState(""), firstName = _g[0], setFirstName = _g[1];
521
521
  var _h = useState(""), lastName = _h[0], setLastName = _h[1];
522
- var _j = useState(""); _j[0]; _j[1];
523
- var _k = useState(""), data = _k[0]; _k[1];
524
522
  var handleClose = function () {
525
523
  props.onClick();
526
524
  };
527
525
  function handleSendMessage() {
528
- props.sendDataToParent(data);
526
+ props.sendDataToParent(themeId, subject, messageText, firstName, lastName);
527
+ console.log("message sent", themeId, subject, messageText, firstName, lastName);
529
528
  }
530
529
  useEffect(function () {
531
530
  var user = JSON.parse(localStorage.getItem("user") || "{}");
@@ -594,7 +593,11 @@ function PropertyCard(props) {
594
593
  var _l = useState(false), floorPlan = _l[0], setFloorPlan = _l[1];
595
594
  var _m = useState(false), messagePopUp = _m[0], setMessagPopUp = _m[1];
596
595
  var _o = useState(false), sharePopUp = _o[0], setSharePopUp = _o[1];
597
- var _p = useState(""); _p[0]; var setDataFromChild = _p[1];
596
+ var _p = useState(""); _p[0]; var setThemeId = _p[1];
597
+ var _q = useState(""); _q[0]; var setSubject = _q[1];
598
+ var _r = useState(""); _r[0]; var setMessageText = _r[1];
599
+ var _s = useState(""); _s[0]; var setFirstName = _s[1];
600
+ var _t = useState(""); _t[0]; var setLastName = _t[1];
598
601
  var pictureUrls = ((_b = (_a = props.property) === null || _a === void 0 ? void 0 : _a.pictures) === null || _b === void 0 ? void 0 : _b.length) > 0
599
602
  ? props.property.pictures.map(function (picture) { return "".concat(props.baseUrl).concat(picture.contentUrl); })
600
603
  : [noImageIcon];
@@ -609,8 +612,12 @@ function PropertyCard(props) {
609
612
  setSharePopUp(true);
610
613
  console.log("sharePopUp", sharePopUp);
611
614
  };
612
- function handleDataFromChild(data) {
613
- setDataFromChild(data);
615
+ function handleDataFromChild(firstName, lastName, themeId, subject, messageText) {
616
+ setFirstName(firstName);
617
+ setLastName(lastName);
618
+ setThemeId(themeId);
619
+ setSubject(subject);
620
+ setMessageText(messageText);
614
621
  }
615
622
  var handleArrowClickInMainImage = function (direction) {
616
623
  if (!props.property || pictureUrls.length === 0)