|
|
@ -701,20 +701,20 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
hints.filter((x) => x.type === "error").length > 0 |
|
|
|
hints.filter((x) => x.type === "error").length > 0 |
|
|
|
? `badge-danger` |
|
|
|
? `badge-danger` |
|
|
|
: "badge-warning" |
|
|
|
: "badge-warning" |
|
|
|
} rounded-circle ml-1 text-center`}
|
|
|
|
} badge-pill mx-1 ml-1 text-center`}
|
|
|
|
> |
|
|
|
> |
|
|
|
{hintErrors.length} |
|
|
|
{hintErrors.length} |
|
|
|
</i> |
|
|
|
</i> |
|
|
|
) : ( |
|
|
|
) : ( |
|
|
|
<i |
|
|
|
<span |
|
|
|
className={`badge ${ |
|
|
|
className={`badge ${ |
|
|
|
hints.filter((x) => x.type === "error").length > 0 |
|
|
|
hints.filter((x) => x.type === "error").length > 0 |
|
|
|
? `badge-danger` |
|
|
|
? `badge-danger` |
|
|
|
: "badge-warning" |
|
|
|
: "badge-warning" |
|
|
|
} rounded-circle ml-1 text-center`}
|
|
|
|
} badge-pill ml-1 text-center`}
|
|
|
|
> |
|
|
|
> |
|
|
|
{hints.length} |
|
|
|
{hints.length} |
|
|
|
</i> |
|
|
|
</span> |
|
|
|
) |
|
|
|
) |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
</span> |
|
|
|
</span> |
|
|
@ -797,25 +797,25 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
Slither |
|
|
|
Slither |
|
|
|
{slitherWarnings.length > 0 ? ( |
|
|
|
{slitherWarnings.length > 0 ? ( |
|
|
|
hideWarnings ? ( |
|
|
|
hideWarnings ? ( |
|
|
|
<i className="badge badge-warning badge-pill mx-1 ml-1"> |
|
|
|
<span className="badge badge-warning badge-pill mx-1 ml-1"> |
|
|
|
{slitherErrors.length} |
|
|
|
{slitherErrors.length} |
|
|
|
</i> |
|
|
|
</span> |
|
|
|
) : showLibsWarning && !hideWarnings ? ( |
|
|
|
) : showLibsWarning && !hideWarnings ? ( |
|
|
|
<i |
|
|
|
<span |
|
|
|
className={`badge ${ |
|
|
|
className={`badge ${ |
|
|
|
slitherErrors.length > 0 ? `badge-danger` : "badge-warning" |
|
|
|
slitherErrors.length > 0 ? `badge-danger` : "badge-warning" |
|
|
|
} badge-pill mx-1 ml-1 text-center`}
|
|
|
|
} badge-pill mx-1 ml-1 text-center`}
|
|
|
|
> |
|
|
|
> |
|
|
|
{slitherWarnings.length} |
|
|
|
{slitherWarnings.length} |
|
|
|
</i> |
|
|
|
</span> |
|
|
|
) : ( |
|
|
|
) : ( |
|
|
|
<i |
|
|
|
<span |
|
|
|
className={`badge ${ |
|
|
|
className={`badge ${ |
|
|
|
slitherErrors.length > 0 ? `badge-danger` : "badge-warning" |
|
|
|
slitherErrors.length > 0 ? `badge-danger` : "badge-warning" |
|
|
|
} badge-pill mx-1 ml-1 text-center`}
|
|
|
|
} badge-pill mx-1 ml-1 text-center`}
|
|
|
|
> |
|
|
|
> |
|
|
|
{noLibSlitherWarnings.length} |
|
|
|
{noLibSlitherWarnings.length} |
|
|
|
</i> |
|
|
|
</span> |
|
|
|
) |
|
|
|
) |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|