mirror of
https://github.com/turbot/steampipe.git
synced 2026-04-10 04:00:06 -04:00
Improve hover title grammar of critical/high severity dashboard benchmark badges. Closes #3300.
This commit is contained in:
@@ -265,14 +265,18 @@ const CheckPanelSeverity = ({ severity_summary }: CheckPanelSeverityProps) => {
|
||||
<CheckPanelSeverityBadge
|
||||
label="Critical"
|
||||
count={critical}
|
||||
title={`${critical.toLocaleString()} critical severity results`}
|
||||
title={`${critical.toLocaleString()} critical severity ${
|
||||
critical === 1 ? "result" : "results"
|
||||
}`}
|
||||
/>
|
||||
)}
|
||||
{high !== undefined && (
|
||||
<CheckPanelSeverityBadge
|
||||
label="High"
|
||||
count={high}
|
||||
title={`${high.toLocaleString()} high severity results`}
|
||||
title={`${high.toLocaleString()} high severity ${
|
||||
high === 1 ? "result" : "results"
|
||||
}`}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user