fix: fixed display of new signature tooltips in some cases (#379)
Signed-off-by: Raul-Cristian Kele <raulkeleblk@gmail.com>
This commit is contained in:
parent
9ecd46e4d0
commit
b787273b84
@ -12,8 +12,8 @@ function SignatureTooltip({ isSigned, signatureInfo }) {
|
|||||||
<Stack direction="column">
|
<Stack direction="column">
|
||||||
<Typography>{isSigned ? 'Verified Signature' : 'Unverified Signature'}</Typography>
|
<Typography>{isSigned ? 'Verified Signature' : 'Unverified Signature'}</Typography>
|
||||||
<Typography>Tool: {tool}</Typography>
|
<Typography>Tool: {tool}</Typography>
|
||||||
<Typography>Trusted: {isTrusted ? 'Yes' : 'No'}</Typography>
|
<Typography>Trusted: {!isEmpty(isTrusted) ? isTrusted : 'Unknown'}</Typography>
|
||||||
<Typography>Author: {author}</Typography>
|
<Typography>Author: {!isEmpty(author) ? author : 'Unknown'}</Typography>
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ const mapSignatureInfo = (signatureInfo) => {
|
|||||||
return signatureInfo
|
return signatureInfo
|
||||||
? {
|
? {
|
||||||
tool: signatureInfo.Tool,
|
tool: signatureInfo.Tool,
|
||||||
isTrusted: signatureInfo.IsTrusted,
|
isTrusted: signatureInfo.IsTrusted?.toString(),
|
||||||
author: signatureInfo.Author
|
author: signatureInfo.Author
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
|
@ -145,7 +145,7 @@ const CriticalVulnerabilityIcon = ({ vulnerabilityStringTitle }) => {
|
|||||||
const NoneVulnerabilityChip = () => {
|
const NoneVulnerabilityChip = () => {
|
||||||
return (
|
return (
|
||||||
<Chip
|
<Chip
|
||||||
label="No Vulnerability"
|
label="None"
|
||||||
sx={{ backgroundColor: '#E8F5E9', color: '#388E3C', fontSize: '0.8125rem' }}
|
sx={{ backgroundColor: '#E8F5E9', color: '#388E3C', fontSize: '0.8125rem' }}
|
||||||
variant="filled"
|
variant="filled"
|
||||||
onDelete={() => {
|
onDelete={() => {
|
||||||
@ -159,7 +159,7 @@ const NoneVulnerabilityChip = () => {
|
|||||||
const UnknownVulnerabilityChip = () => {
|
const UnknownVulnerabilityChip = () => {
|
||||||
return (
|
return (
|
||||||
<Chip
|
<Chip
|
||||||
label="Unknown Vulnerability"
|
label="Unknown"
|
||||||
sx={{ backgroundColor: '#ECEFF1', color: '#52637A', fontSize: '0.8125rem' }}
|
sx={{ backgroundColor: '#ECEFF1', color: '#52637A', fontSize: '0.8125rem' }}
|
||||||
variant="filled"
|
variant="filled"
|
||||||
onDelete={() => {
|
onDelete={() => {
|
||||||
@ -187,7 +187,7 @@ const FailedScanChip = () => {
|
|||||||
const LowVulnerabilityChip = () => {
|
const LowVulnerabilityChip = () => {
|
||||||
return (
|
return (
|
||||||
<Chip
|
<Chip
|
||||||
label="Low Vulnerability"
|
label="Low"
|
||||||
sx={{ backgroundColor: '#FFF3E0', color: '#FB8C00', fontSize: '0.8125rem' }}
|
sx={{ backgroundColor: '#FFF3E0', color: '#FB8C00', fontSize: '0.8125rem' }}
|
||||||
variant="filled"
|
variant="filled"
|
||||||
onDelete={() => {
|
onDelete={() => {
|
||||||
@ -201,7 +201,7 @@ const LowVulnerabilityChip = () => {
|
|||||||
const MediumVulnerabilityChip = () => {
|
const MediumVulnerabilityChip = () => {
|
||||||
return (
|
return (
|
||||||
<Chip
|
<Chip
|
||||||
label="Medium Vulnerability"
|
label="Medium"
|
||||||
sx={{ backgroundColor: '#FFF3E0', color: '#FB8C00', fontSize: '0.8125rem' }}
|
sx={{ backgroundColor: '#FFF3E0', color: '#FB8C00', fontSize: '0.8125rem' }}
|
||||||
variant="filled"
|
variant="filled"
|
||||||
onDelete={() => {
|
onDelete={() => {
|
||||||
@ -215,7 +215,7 @@ const MediumVulnerabilityChip = () => {
|
|||||||
const HighVulnerabilityChip = () => {
|
const HighVulnerabilityChip = () => {
|
||||||
return (
|
return (
|
||||||
<Chip
|
<Chip
|
||||||
label="High Vulnerability"
|
label="High"
|
||||||
sx={{ backgroundColor: '#FEEBEE', color: '#E53935', fontSize: '0.8125rem' }}
|
sx={{ backgroundColor: '#FEEBEE', color: '#E53935', fontSize: '0.8125rem' }}
|
||||||
variant="filled"
|
variant="filled"
|
||||||
onDelete={() => {
|
onDelete={() => {
|
||||||
@ -229,7 +229,7 @@ const HighVulnerabilityChip = () => {
|
|||||||
const CriticalVulnerabilityChip = () => {
|
const CriticalVulnerabilityChip = () => {
|
||||||
return (
|
return (
|
||||||
<Chip
|
<Chip
|
||||||
label="Critical Vulnerability"
|
label="Critical"
|
||||||
sx={{ backgroundColor: '#FEEBEE', color: '#E53935', fontSize: '0.8125rem' }}
|
sx={{ backgroundColor: '#FEEBEE', color: '#E53935', fontSize: '0.8125rem' }}
|
||||||
variant="filled"
|
variant="filled"
|
||||||
onDelete={() => {
|
onDelete={() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user