nestiq-component-library 1.1.55 → 1.1.56

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,11 @@ 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);
529
527
  }
530
528
  useEffect(function () {
531
529
  var user = JSON.parse(localStorage.getItem("user") || "{}");
@@ -594,7 +592,11 @@ function PropertyCard(props) {
594
592
  var _l = useState(false), floorPlan = _l[0], setFloorPlan = _l[1];
595
593
  var _m = useState(false), messagePopUp = _m[0], setMessagPopUp = _m[1];
596
594
  var _o = useState(false), sharePopUp = _o[0], setSharePopUp = _o[1];
597
- var _p = useState(""); _p[0]; var setDataFromChild = _p[1];
595
+ var _p = useState(""); _p[0]; var setThemeId = _p[1];
596
+ var _q = useState(""); _q[0]; var setSubject = _q[1];
597
+ var _r = useState(""); _r[0]; var setMessageText = _r[1];
598
+ var _s = useState(""); _s[0]; var setFirstName = _s[1];
599
+ var _t = useState(""); _t[0]; var setLastName = _t[1];
598
600
  var pictureUrls = ((_b = (_a = props.property) === null || _a === void 0 ? void 0 : _a.pictures) === null || _b === void 0 ? void 0 : _b.length) > 0
599
601
  ? props.property.pictures.map(function (picture) { return "".concat(props.baseUrl).concat(picture.contentUrl); })
600
602
  : [noImageIcon];
@@ -609,8 +611,12 @@ function PropertyCard(props) {
609
611
  setSharePopUp(true);
610
612
  console.log("sharePopUp", sharePopUp);
611
613
  };
612
- function handleDataFromChild(data) {
613
- setDataFromChild(data);
614
+ function handleDataFromChild(firstName, lastName, themeId, subject, messageText) {
615
+ setFirstName(firstName);
616
+ setLastName(lastName);
617
+ setThemeId(themeId);
618
+ setSubject(subject);
619
+ setMessageText(messageText);
614
620
  }
615
621
  var handleArrowClickInMainImage = function (direction) {
616
622
  if (!props.property || pictureUrls.length === 0)