@gisce/react-ooui 0.21.0 → 0.21.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gisce/react-ooui",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@ant-design/charts": "^1.3.6",
|
|
27
|
-
"@gisce/ooui": "^0.16.
|
|
27
|
+
"@gisce/ooui": "^0.16.2",
|
|
28
28
|
"@gisce/react-formiga-table": "^0.5.0",
|
|
29
29
|
"@monaco-editor/react": "^4.4.5",
|
|
30
30
|
"@tabler/icons": "^1.95.1",
|
|
@@ -108,7 +108,11 @@ export default (key: string): React.ElementType => {
|
|
|
108
108
|
return Icons[antKey];
|
|
109
109
|
}
|
|
110
110
|
const tablerKey = `Icon${IconCamelCase}`;
|
|
111
|
+
if (TablerIcons.hasOwnProperty(tablerKey)) {
|
|
112
|
+
// @ts-ignore
|
|
113
|
+
const CustomIcon = () => React.createElement(Icon, {component: TablerIcons[tablerKey]});
|
|
114
|
+
return CustomIcon
|
|
115
|
+
}
|
|
111
116
|
// @ts-ignore
|
|
112
|
-
|
|
113
|
-
return CustomIcon
|
|
117
|
+
return undefined
|
|
114
118
|
};
|