shish há 2 meses atrás
pai
commit
30037c33a5
1 ficheiros alterados com 1 adições e 9 exclusões
  1. 1 9
      ghsApp/src/utils/iconSrc.js

+ 1 - 9
ghsApp/src/utils/iconSrc.js

@@ -5,10 +5,6 @@ const ICON_ALIASES = {
   'add-custom': 'add_custom'
   'add-custom': 'add_custom'
 }
 }
 
 
-const ICON_BG_MAP = {
-  breakage: '#EAF6F0'
-}
-
 const DEFAULT_ICON_BG = '#EAF2FF'
 const DEFAULT_ICON_BG = '#EAF2FF'
 
 
 export function iconSrc(icon) {
 export function iconSrc(icon) {
@@ -20,11 +16,7 @@ export function iconSrc(icon) {
 }
 }
 
 
 export function iconBg(icon) {
 export function iconBg(icon) {
-  if (!icon) {
-    return DEFAULT_ICON_BG
-  }
-  const name = ICON_ALIASES[icon] || icon
-  return ICON_BG_MAP[name] || DEFAULT_ICON_BG
+  return DEFAULT_ICON_BG
 }
 }
 
 
 export function iconStyle(size, height) {
 export function iconStyle(size, height) {