intelicoreact 0.2.57 → 0.2.58

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.
@@ -30,6 +30,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
30
30
  var RC = 'user-contacts';
31
31
 
32
32
  var UserContacts = function UserContacts(props) {
33
+ var _mainRef$current;
34
+
33
35
  var _ref = props || {},
34
36
  email = _ref.email,
35
37
  phone = _ref.phone,
@@ -92,14 +94,14 @@ var UserContacts = function UserContacts(props) {
92
94
  }
93
95
  };
94
96
 
95
- (0, _react.useLayoutEffect)(function () {
97
+ (0, _react.useLayoutEffect)(checkWidth, [isRunTask]);
98
+ (0, _react.useEffect)(function () {
96
99
  setIsRunTask({});
97
100
  return function () {
98
101
  setIsUseEmailIcon(false);
99
102
  setIsUsePhoneIcon(false);
100
103
  };
101
- }, [email, phone, isSalesContact, isSalesContact, isDisputeContact, isAccountingContact, +maxWidth]);
102
- (0, _react.useLayoutEffect)(checkWidth, [isRunTask]);
104
+ }, [email, phone, isSalesContact, isSalesContact, isDisputeContact, isAccountingContact, +maxWidth, mainRef === null || mainRef === void 0 ? void 0 : (_mainRef$current = mainRef.current) === null || _mainRef$current === void 0 ? void 0 : _mainRef$current.clientWidth]);
103
105
  return /*#__PURE__*/_react.default.createElement("div", {
104
106
  ref: mainRef,
105
107
  className: (0, _classnames.default)('j4', RC, className)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.2.57",
3
+ "version": "0.2.58",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [