@gisce/react-ooui 0.21.1 → 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.1",
3
+ "version": "0.21.2",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -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
- const CustomIcon = () => React.createElement(Icon, {component: TablerIcons[tablerKey]});
113
- return CustomIcon
117
+ return undefined
114
118
  };