aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Icon.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-10-15 22:12:21 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commitfbf01fe1c1fa00ea23b18f8bc602ccb4f0691a04 (patch)
tree0e8880ac24af30dd884acc7d13f388f0af303971 /vnext/src/ui/Icon.js
parent0fa19d54799934b8f17c95939cb0722e06099327 (diff)
New JSX transform
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