fix formatting

pull/3838/head
Joseph Izang 1 year ago
parent 5ef943316e
commit 2a537414de
  1. 34
      libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx

@ -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>
)
);
}

Loading…
Cancel
Save