|
|
@@ -5,10 +5,6 @@ const ICON_ALIASES = {
|
|
|
'add-custom': 'add_custom'
|
|
|
}
|
|
|
|
|
|
-const ICON_BG_MAP = {
|
|
|
- breakage: '#EAF6F0'
|
|
|
-}
|
|
|
-
|
|
|
const DEFAULT_ICON_BG = '#EAF2FF'
|
|
|
|
|
|
export function iconSrc(icon) {
|
|
|
@@ -20,11 +16,7 @@ export function iconSrc(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) {
|