diff --git a/packages/grafana-ui/src/components/Icon/iconBundle.ts b/packages/grafana-ui/src/components/Icon/iconBundle.ts index ded3db389be..5bc180e21ef 100644 --- a/packages/grafana-ui/src/components/Icon/iconBundle.ts +++ b/packages/grafana-ui/src/components/Icon/iconBundle.ts @@ -165,7 +165,7 @@ import u1121 from '../../../../../public/img/icons/unicons/wrap-text.svg'; import u1135 from '../../../../../public/img/icons/unicons/x.svg'; export let cacheInitialized = false; -export let iconRoot = 'public/img/icons'; +export let iconRoot = 'public/img/icons/'; function cacheItem(content: string, path: string) { cacheStore[iconRoot + path] = { content, status: 'loaded' }; diff --git a/public/app/features/search/page/components/columns.tsx b/public/app/features/search/page/components/columns.tsx index 89dcdf6472f..03a57dce58a 100644 --- a/public/app/features/search/page/components/columns.tsx +++ b/public/app/features/search/page/components/columns.tsx @@ -1,6 +1,5 @@ import { cx } from '@emotion/css'; import React from 'react'; -import SVG from 'react-inlinesvg'; import { DisplayProcessor, @@ -334,7 +333,7 @@ function makeTypeColumn( Cell: (p) => { const i = p.row.index; const kind = kindField?.values.get(i) ?? 'dashboard'; - let icon = 'public/img/icons/unicons/apps.svg'; + let icon: IconName = 'apps'; let txt = 'Dashboard'; if (kind) { txt = kind; @@ -344,12 +343,12 @@ function makeTypeColumn( break; case 'folder': - icon = 'public/img/icons/unicons/folder.svg'; + icon = 'folder'; txt = 'Folder'; break; case 'panel': - icon = `public/img/icons/unicons/${PluginIconName.panel}.svg`; + icon = `${PluginIconName.panel}`; const type = typeField.values.get(i); if (type) { txt = type; @@ -360,13 +359,13 @@ function makeTypeColumn( switch (type) { case 'row': txt = 'Row'; - icon = `public/img/icons/unicons/bars.svg`; + icon = `bars`; break; case 'singlestat': // auto-migration txt = 'Singlestat'; break; default: - icon = `public/img/icons/unicons/question.svg`; // plugin not found + icon = `question-circle`; // plugin not found } } } @@ -375,7 +374,7 @@ function makeTypeColumn( } return (