@antscorp/antsomi-ui 1.3.5-beta.434 → 1.3.5-beta.436
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.
|
@@ -20,7 +20,6 @@ import { CustomLabelStyled, CustomRootLabel, MenuWrapper, TextWrapper } from './
|
|
|
20
20
|
// Components
|
|
21
21
|
import { Checkbox, Scrollbars, Spin } from '../../../../atoms';
|
|
22
22
|
import { Menu } from '../../../../organism';
|
|
23
|
-
import { Empty } from '../Empty';
|
|
24
23
|
// Utils
|
|
25
24
|
import { handleError } from '@antscorp/antsomi-ui/es/utils';
|
|
26
25
|
// Constants
|
|
@@ -118,8 +117,7 @@ export const CategoryListing = memo(props => {
|
|
|
118
117
|
header,
|
|
119
118
|
React.createElement(Scrollbars, { className: "category__listing" },
|
|
120
119
|
React.createElement(Spin, { spinning: loading, wrapperClassName: "template-listing__loading" },
|
|
121
|
-
|
|
122
|
-
React.createElement(Empty, Object.assign({}, emptyProps)))) : (React.createElement(Menu, Object.assign({ selectedKeys: [], items: menuItems, inlineIndent: 0, mode: "inline", defaultOpenKeys: items === null || items === void 0 ? void 0 : items.map(item => String(item.key)), expandIcon: ({ isOpen }) => {
|
|
120
|
+
React.createElement(Menu, Object.assign({ selectedKeys: [], items: menuItems, inlineIndent: 0, mode: "inline", defaultOpenKeys: items === null || items === void 0 ? void 0 : items.map(item => String(item.key)), expandIcon: ({ isOpen }) => {
|
|
123
121
|
var _a;
|
|
124
122
|
return (React.createElement(Icon, { type: "icon-ants-expand-more", style: {
|
|
125
123
|
fontSize: 20,
|
|
@@ -139,7 +137,7 @@ export const CategoryListing = memo(props => {
|
|
|
139
137
|
// }}
|
|
140
138
|
// />
|
|
141
139
|
// }
|
|
142
|
-
onClick: handleClickMenu }, restOfProps))
|
|
140
|
+
onClick: handleClickMenu }, restOfProps)),
|
|
143
141
|
footer)))) : null;
|
|
144
142
|
});
|
|
145
143
|
CategoryListing.displayName = 'CategoryListing';
|