|
|
|
@ -32,13 +32,13 @@ export function calculateWarningStateEntries(entries: [string, any][]) { |
|
|
|
|
export function BasicTitle(props: BasicTitleProps) { |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<span>Remix{props.warningStateEntries.length > 0 && !props.hideWarnings ? <i data-id="StaticAnalysisErrorCount" className="badge badge-info rounded-circle ml-1">{calculateWarningStateEntries(props.warningStateEntries).length}</i>: ( |
|
|
|
|
<span>Remix{props.warningStateEntries.length > 0 ? !props.hideWarnings ? <i data-id="StaticAnalysisErrorCount" className="badge badge-info rounded-circle ml-1">{calculateWarningStateEntries(props.warningStateEntries).length}</i>: ( |
|
|
|
|
<i className="badge badge-info rounded-circle ml-1"> |
|
|
|
|
{ |
|
|
|
|
calculateWarningStateEntries(props.warningStateEntries).errors.length |
|
|
|
|
} |
|
|
|
|
</i> |
|
|
|
|
)} |
|
|
|
|
) : null} |
|
|
|
|
</span> |
|
|
|
|
) |
|
|
|
|
} |