MCPcopy Create free account
hub / github.com/facebook/Rapid / getSeverityIcon

Method getSeverityIcon

modules/core/ValidationSystem.js:386–394  ·  view source on GitHub ↗

* getSeverityIcon * @param {string} severity - one of 'error', 'warning', 'suggestion', or 'resolved' * @return {string} The name of the icon to use

(severity)

Source from the content-addressed store, hash-verified

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 /**

Callers 4

commitWarningsFunction · 0.80
renderMethod · 0.80
renderDisclosureContentFunction · 0.80
drawIssuesListFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected