|
|
|
@ -37,15 +37,29 @@ export function BasicTitle(props: BasicTitleProps) { |
|
|
|
|
|
|
|
|
|
}, [props.warningStateEntries.length]) |
|
|
|
|
return ( |
|
|
|
|
<span>Remix{props.warningStateEntries.length > 0 ? !props.hideWarnings ? !props.showLibsWarnings ? <i data-id="StaticAnalysisErrorCount" className={`badge ${calculateWarningStateEntries(props.warningStateEntries).length > 0 ? 'badge-warning' : 'badge-danger'} rounded-circle ml-1 text-center`}> |
|
|
|
|
{ |
|
|
|
|
calculateWarningStateEntries(props.warningStateEntries).length}</i>: ( |
|
|
|
|
<i className="badge badge-warning rounded-circle ml-1 text-center"> |
|
|
|
|
{ |
|
|
|
|
warningCount |
|
|
|
|
} |
|
|
|
|
</i> |
|
|
|
|
) : null : null} |
|
|
|
|
<span> |
|
|
|
|
Remix |
|
|
|
|
{props.warningStateEntries.length > 0 ? ( |
|
|
|
|
!props.hideWarnings ? ( |
|
|
|
|
!props.showLibsWarnings ? ( |
|
|
|
|
<i |
|
|
|
|
data-id="StaticAnalysisErrorCount" |
|
|
|
|
className={`badge ${ |
|
|
|
|
calculateWarningStateEntries(props.warningStateEntries).length > |
|
|
|
|
0 |
|
|
|
|
? "badge-warning" |
|
|
|
|
: "badge-danger" |
|
|
|
|
} rounded-circle ml-1 text-center`}
|
|
|
|
|
> |
|
|
|
|
{calculateWarningStateEntries(props.warningStateEntries).length} |
|
|
|
|
</i> |
|
|
|
|
) : ( |
|
|
|
|
<i className="badge badge-warning rounded-circle ml-1 text-center"> |
|
|
|
|
{warningCount} |
|
|
|
|
</i> |
|
|
|
|
) |
|
|
|
|
) : null |
|
|
|
|
) : null} |
|
|
|
|
</span> |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|