Fixed the not available text

Signed-off-by: Amelia-Maria Breda <ambreda@cisco.com>
This commit is contained in:
Amelia-Maria Breda 2022-10-13 13:50:58 +01:00 committed by Raul Kele
parent 2769268dd5
commit 4305f6de07
5 changed files with 8 additions and 9 deletions

View File

@ -166,7 +166,7 @@ function RepoCard(props) {
};
const getVendor = () => {
return `${vendor || 'N/A NewestImage.Vendor'}`;
return `${vendor || 'Vendor not available'}`;
};
const getVersion = () => {
return `published ${version}`;
@ -200,7 +200,7 @@ function RepoCard(props) {
{/* <Chip label="Verified licensee" sx={{ backgroundColor: "#E8F5E9", color: "#388E3C" }} variant="filled" onDelete={() => { return }} deleteIcon={vulnerabilityCheck()} /> */}
</Stack>
<Typography className={classes.versionLast} pt={1} sx={{ fontSize: 12 }} gutterBottom noWrap>
{description || 'N/A NewestImage.Description'}
{description || 'Description not available'}
</Typography>
<Stack alignItems="center" direction="row" spacing={2} pt={1}>
{platformChips()}

View File

@ -222,7 +222,7 @@ function RepoDetails() {
>
{
// @ts-ignore
repoDetailData.description || 'N/A NewestImage.Description'
repoDetailData.description || 'Description not available'
}
</Typography>
</CardContent>
@ -281,7 +281,7 @@ function RepoDetails() {
>
{
// @ts-ignore
repoDetailData?.title || 'N/A NewestImage.Title'
repoDetailData?.title || 'Title not available'
}
</Typography>
<Stack alignItems="center" sx={{ paddingLeft: '4rem' }} direction="row" spacing={2} pt={1}>

View File

@ -49,7 +49,7 @@ function RepoDetailsMetadata(props) {
Repository
</Typography>
<Typography variant="body1" align="left" className={classes.metadataBody}>
{repoURL || `N/A Source`}
{repoURL || `not available`}
</Typography>
</CardContent>
</Card>
@ -61,7 +61,7 @@ function RepoDetailsMetadata(props) {
Total downloads
</Typography>
<Typography variant="body1" align="left" className={classes.metadataBody}>
{totalDownloads || `N/A DownloadCount`}
{totalDownloads || `not available`}
</Typography>
</CardContent>
</Card>

View File

@ -248,7 +248,7 @@ function TagDetails() {
<Grid item xs={4}>
<Stack direction="row">
<Grid item xs={10}>
<Typography variant="body1" sx={{ color: '#52637A', fontSize: '1rem', paddingTop: '0.5rem' }}>
<Typography variant="body1" sx={{ color: '#52637A', fontSize: '1rem', paddingTop: '0.75rem' }}>
Copy and pull to pull this image
</Typography>
</Grid>

View File

@ -97,7 +97,7 @@ function TagCard(props) {
Last pushed
</Typography>
<Typography variant="caption" sx={{ fontWeight: '600', fontSize: '0.8125rem' }}>
{lastDate || '---'} by {vendors || 'N/A Summary?.Vendors'}
{lastDate || 'Date not available'} by {vendors[0] || 'Vendor not available'}
</Typography>
</Stack>
@ -187,7 +187,6 @@ export default function Tags(props) {
const classes = useStyles();
const { data } = props;
const { images, lastUpdated, vendors, size, platforms } = data;
console.log(JSON.stringify(data));
return (
<Card className={classes.tagCard} data-testid="tags-container">