aboutsummaryrefslogtreecommitdiff
path: root/src/main/assets/icon.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-03-07 12:23:18 +0300
committerGravatar Vitaly Takmazov2023-03-07 12:23:29 +0300
commitcfdb649ae18e25925dcc3c4acee6bc76754cc025 (patch)
treeeb5a6cfe80ca173338862d0d3fda28547ba639c8 /src/main/assets/icon.js
parent093012a913982fcf1c521be142172db673523c74 (diff)
Fix legacy build
Diffstat (limited to 'src/main/assets/icon.js')
-rw-r--r--src/main/assets/icon.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/assets/icon.js b/src/main/assets/icon.js
index 6ff95001..6ab3cd81 100644
--- a/src/main/assets/icon.js
+++ b/src/main/assets/icon.js
@@ -1,8 +1,10 @@
+import evilIcons from 'evil-icons/assets/sprite.svg';
+
function icon(name, { size = '', className = '' }) {
const classes = `icon icon--${name} icon--${size} ${className}`.trim();
var icon = '<svg class="icon__cnt">' +
- '<use xlink:href="/sprite.svg#' + name + '-icon" />' +
+ `<use xlink:href='${evilIcons}#${name}-icon' />` +
'</svg>';
var html = '<div class="' + classes + '">' +