aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-08-06 22:11:57 +0300
committerGravatar Vitaly Takmazov2024-09-02 05:58:21 +0300
commit5a30741ef70d8a11e2f1976229957983f9c08fad (patch)
tree4b1543201435ed4027e05bf8e645718694c8fa94 /vnext/src/ui
parent0149dddce3145875b45416cbc80bc229098fe495 (diff)
Fix vnext server build
Diffstat (limited to 'vnext/src/ui')
-rw-r--r--vnext/src/ui/Icon.js4
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',