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