* getSeverityIcon * @param {string} severity - one of 'error', 'warning', 'suggestion', or 'resolved' * @return {string} The name of the icon to use
(severity)
| 384 | * @return {string} The name of the icon to use |
| 385 | */ |
| 386 | getSeverityIcon(severity) { |
| 387 | const icons = { |
| 388 | error: '#rapid-icon-error', |
| 389 | warning: '#fas-triangle-exclamation', |
| 390 | suggestion: '#fas-circle-arrow-up', |
| 391 | resolved: '#rapid-icon-apply' |
| 392 | }; |
| 393 | return icons[severity] || '#fas-triangle-exclamation'; |
| 394 | } |
| 395 | |
| 396 | |
| 397 | /** |
no outgoing calls
no test coverage detected