@antscorp/antsomi-ui 1.3.5-beta.644 → 1.3.5-beta.646
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.
|
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
// Libraries
|
|
13
|
-
import React
|
|
13
|
+
import React from 'react';
|
|
14
14
|
import { cloneDeep, isArray, isEmpty, isNil, sortBy } from 'lodash';
|
|
15
15
|
// Components
|
|
16
16
|
// import { LazyIcon as Icons } from '@antscorp/antsomi-ui/es/components/icons/LazyIcon';
|
|
@@ -522,8 +522,11 @@ export const renderMenuIcon = (iconName) => {
|
|
|
522
522
|
try {
|
|
523
523
|
// const ComponentIcon = iconName && Icons[iconName];
|
|
524
524
|
const ComponentIcon = iconName && Icons[iconName];
|
|
525
|
-
return ComponentIcon ? (
|
|
526
|
-
|
|
525
|
+
return ComponentIcon ? (
|
|
526
|
+
// <Suspense fallback={null}>
|
|
527
|
+
React.createElement(ComponentIcon, { className: "menu-item__icon", size: 30 })) : (
|
|
528
|
+
// </Suspense>
|
|
529
|
+
React.createElement(IconWrapper, null, isNil(iconName) ? null : React.createElement(Icon, { type: iconName })));
|
|
527
530
|
}
|
|
528
531
|
catch (error) {
|
|
529
532
|
return React.createElement(IconWrapper, null, isNil(iconName) ? null : React.createElement(Icon, { type: iconName }));
|