electron build

This commit is contained in:
Jan Prochazka
2020-03-14 14:43:48 +01:00
parent 5d36035022
commit 6b6c9ec77b
4 changed files with 41 additions and 36 deletions

View File

@@ -5,7 +5,8 @@ export function getIconImage(src, props) {
const { size = 16, style = {}, className, title } = props || {};
if (!src) return null;
if (src.endsWith('.svg')) {
src = '/icons/' + src;
// eslint-disable-next-line
src = `${process.env.PUBLIC_URL}/icons/${src}`;
}
// if (props.alignToLine) {
// style["position"] = "relative";