@hipay/hipay-material-ui 3.7.2 → 3.7.3

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/HiIcon/HiIcon.js CHANGED
@@ -56,12 +56,12 @@ var HiIcon = _react.default.forwardRef(function (props, ref) {
56
56
  color = props.color,
57
57
  other = (0, _objectWithoutProperties2.default)(props, ["children", "className", "icon", "size", "color"]);
58
58
  var classes = useStyles(props);
59
+ var iconName = icon !== null ? icon : children;
59
60
 
60
- if ((0, _typeof2.default)(icon) === "object") {
61
- return icon;
61
+ if (iconName && (0, _typeof2.default)(iconName) === "object") {
62
+ return iconName;
62
63
  }
63
64
 
64
- var iconName = icon !== null ? icon : children;
65
65
  var iconType = (0, _react.useMemo)(function () {
66
66
  if (iconName && iconName.indexOf('fa-') === 0) {
67
67
  return "line_awesome";
@@ -56,12 +56,12 @@ var HiIcon = _react.default.forwardRef(function (props, ref) {
56
56
  color = props.color,
57
57
  other = (0, _objectWithoutProperties2.default)(props, ["children", "className", "icon", "size", "color"]);
58
58
  var classes = useStyles(props);
59
+ var iconName = icon !== null ? icon : children;
59
60
 
60
- if ((0, _typeof2.default)(icon) === "object") {
61
- return icon;
61
+ if (iconName && (0, _typeof2.default)(iconName) === "object") {
62
+ return iconName;
62
63
  }
63
64
 
64
- var iconName = icon !== null ? icon : children;
65
65
  var iconType = (0, _react.useMemo)(function () {
66
66
  if (iconName && iconName.indexOf('fa-') === 0) {
67
67
  return "line_awesome";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hipay/hipay-material-ui",
3
3
  "private": false,
4
- "version": "3.7.2",
4
+ "version": "3.7.3",
5
5
  "description": "React components that implement Google's Material Design.",
6
6
  "repository": {
7
7
  "type": "git",