@cypress-design/react-statusicon 0.4.8 → 0.4.9

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/index.umd.js CHANGED
@@ -487,6 +487,7 @@ var compileReactIconProperties = function (_a) {
487
487
  }
488
488
  return newAttributes;
489
489
  }, {});
490
+ // eslint-disable-next-line react-hooks/rules-of-hooks
490
491
  React__namespace.useEffect(function () {
491
492
  var iconFileId = "".concat(name, "_").concat(size);
492
493
  if (defs) {
@@ -500,7 +501,7 @@ var compileReactIconProperties = function (_a) {
500
501
  svgElement.innerHTML = defs;
501
502
  document.body.appendChild(svgElement);
502
503
  }
503
- }, [defs]);
504
+ }, [defs, name, size]);
504
505
  var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
505
506
  __html: body,
506
507
  }, className: undefined }, filteredAttributes);