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]) }, [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>
) );
} }

Loading…
Cancel
Save