|
|
@ -505,12 +505,12 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
{hints.length > 0 ? ( |
|
|
|
{hints.length > 0 ? ( |
|
|
|
hideWarnings ? ( |
|
|
|
hideWarnings ? ( |
|
|
|
<i className={`badge ${hints.filter(x => x.type === 'error').length > 0 |
|
|
|
<i className={`badge ${hints.filter(x => x.type === 'error').length > 0 |
|
|
|
? `badge-danger` : 'badge-warning'} rounded-circle ml-1 text-center`}>
|
|
|
|
? `badge-danger` : 'badge-warning'} badge-pill px-1 ml-1 text-center`}>
|
|
|
|
{hintErrors.length} |
|
|
|
{hintErrors.length} |
|
|
|
</i> |
|
|
|
</i> |
|
|
|
) : ( |
|
|
|
) : ( |
|
|
|
<i className={`badge ${hints.filter(x => x.type === 'error').length > 0 |
|
|
|
<i className={`badge ${hints.filter(x => x.type === 'error').length > 0 |
|
|
|
? `badge-danger` : 'badge-warning'} rounded-circle ml-1 text-center`}>
|
|
|
|
? `badge-danger` : 'badge-warning'} badge-pill px-1 ml-1 text-center`}>
|
|
|
|
{hints.length} |
|
|
|
{hints.length} |
|
|
|
</i> |
|
|
|
</i> |
|
|
|
) |
|
|
|
) |
|
|
@ -545,15 +545,15 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
Slither |
|
|
|
Slither |
|
|
|
{slitherWarnings.length > 0 ? ( |
|
|
|
{slitherWarnings.length > 0 ? ( |
|
|
|
hideWarnings ? ( |
|
|
|
hideWarnings ? ( |
|
|
|
<i className="badge badge-warning rounded-circle ml-1"> |
|
|
|
<i className="badge badge-warning badge-pill px-1 ml-1"> |
|
|
|
{slitherErrors.length} |
|
|
|
{slitherErrors.length} |
|
|
|
</i> |
|
|
|
</i> |
|
|
|
) : showLibsWarning === true && hideWarnings === false ? ( |
|
|
|
) : showLibsWarning === true && hideWarnings === false ? ( |
|
|
|
<i className={`badge ${slitherErrors.length > 0 ? `badge-danger` : 'badge-warning'} rounded-circle ml-1 text-center`}> |
|
|
|
<i className={`badge ${slitherErrors.length > 0 ? `badge-danger` : 'badge-warning'} badge-pill px-1 ml-1 text-center`}> |
|
|
|
{slitherWarnings.length} |
|
|
|
{slitherWarnings.length} |
|
|
|
</i> |
|
|
|
</i> |
|
|
|
) : ( |
|
|
|
) : ( |
|
|
|
<i className={`badge ${slitherErrors.length > 0 ? `badge-danger` : 'badge-warning'} rounded-circle ml-1 text-center`}> |
|
|
|
<i className={`badge ${slitherErrors.length > 0 ? `badge-danger` : 'badge-warning'} badge-pill px-1 ml-1 text-center`}> |
|
|
|
{noLibSlitherWarnings.length} |
|
|
|
{noLibSlitherWarnings.length} |
|
|
|
</i> |
|
|
|
</i> |
|
|
|
) |
|
|
|
) |
|
|
|