@antscorp/antsomi-ui 1.3.5-beta.633 → 1.3.5-beta.634
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, { Suspense } 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';
|
|
@@ -516,10 +516,7 @@ export const getCustomActiveAppCode = (args) => {
|
|
|
516
516
|
export const renderMenuIcon = (iconName) => {
|
|
517
517
|
try {
|
|
518
518
|
// const ComponentIcon = iconName && Icons[iconName];
|
|
519
|
-
|
|
520
|
-
startTransition(() => {
|
|
521
|
-
ComponentIcon = iconName && Icons[iconName];
|
|
522
|
-
});
|
|
519
|
+
const ComponentIcon = iconName && Icons[iconName];
|
|
523
520
|
return ComponentIcon ? (React.createElement(Suspense, { fallback: null },
|
|
524
521
|
React.createElement(ComponentIcon, { className: "menu-item__icon", size: 30 }))) : (React.createElement(IconWrapper, null, isNil(iconName) ? null : React.createElement(Icon, { type: iconName })));
|
|
525
522
|
}
|