@hipay/hipay-material-ui 3.7.2 → 3.7.3
Sign up to get free protection for your applications and to get access to all the features.
- package/HiIcon/HiIcon.js +3 -3
- package/es/HiIcon/HiIcon.js +3 -3
- package/package.json +1 -1
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)(
|
61
|
-
return
|
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/es/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)(
|
61
|
-
return
|
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";
|