aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Icon.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/Icon.js')
-rw-r--r--vnext/src/ui/Icon.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/vnext/src/ui/Icon.js b/vnext/src/ui/Icon.js
index af9a0944..c959e2d1 100644
--- a/vnext/src/ui/Icon.js
+++ b/vnext/src/ui/Icon.js
@@ -1,4 +1,4 @@
-import React, { memo } from 'react';
+import { createElement, memo } from 'react';
import PropTypes from 'prop-types';
// @ts-ignore
@@ -23,8 +23,8 @@ function IconElement(props) {
var name = '#' + props.name + '-icon';
var useTag = `<use xlink:href='${evilIcons}${name}' />`;
- var Icon = React.createElement('svg', { className: 'icon__cnt', dangerouslySetInnerHTML: { __html: useTag } });
- return React.createElement(
+ var Icon = createElement('svg', { className: 'icon__cnt', dangerouslySetInnerHTML: { __html: useTag } });
+ return createElement(
'div',
{ className: klass },
wrapSpinner(Icon, klass)
@@ -37,7 +37,7 @@ function IconElement(props) {
*/
function wrapSpinner(Html, klass) {
if (klass.indexOf('spinner') > -1) {
- return React.createElement(
+ return createElement(
'div',
{ className: 'icon__spinner' },
Html