diff options
author | Vitaly Takmazov | 2024-08-06 22:11:57 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-09-02 05:58:21 +0300 |
commit | 5a30741ef70d8a11e2f1976229957983f9c08fad (patch) | |
tree | 4b1543201435ed4027e05bf8e645718694c8fa94 /vnext/src/ui | |
parent | 0149dddce3145875b45416cbc80bc229098fe495 (diff) |
Fix vnext server build
Diffstat (limited to 'vnext/src/ui')
-rw-r--r-- | vnext/src/ui/Icon.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/ui/Icon.js b/vnext/src/ui/Icon.js index bc5ce08a..19f1387c 100644 --- a/vnext/src/ui/Icon.js +++ b/vnext/src/ui/Icon.js @@ -1,7 +1,7 @@ import { createElement, memo } from 'react' import PropTypes from 'prop-types' -import evilIcons from 'evil-icons/assets/sprite.svg' +const spritesUrl = new URL('evil-icons/assets/sprite.svg', import.meta.url) /** * @typedef {object} IconProps @@ -21,7 +21,7 @@ function IconElement(props) { var klass = 'icon' + (!props.noFill ? ' icon--' + props.name : '') + size + className var name = '#' + props.name + '-icon' - var useTag = `<use xlink:href='${evilIcons}${name}' />` + var useTag = `<use xlink:href='${spritesUrl}${name}' />` var Icon = createElement('svg', { className: 'icon__cnt', dangerouslySetInnerHTML: { __html: useTag } }) return createElement( 'div', |