fixed newest tag display

Signed-off-by: Raul Kele <raulkeleblk@gmail.com>
This commit is contained in:
Raul Kele 2022-08-11 12:27:35 +03:00 committed by Ramkumar Chinchani
parent 498356c6eb
commit e23044fd1b

View File

@ -72,7 +72,7 @@ const useStyles = makeStyles(() => ({
function RepoCard(props) {
const classes = useStyles();
const navigate = useNavigate();
const { name, vendor, description, lastUpdated, downloads, rating } = props;
const { name, vendor, description, lastUpdated, downloads, rating, version } = props;
const goToDetails = (repo) => {
navigate(`/image/${name}`, { state: { lastDate: (lastUpdated ? DateTime.fromISO(lastUpdated) : DateTime.now().minus({ days: 1 })).toRelative({ unit: 'days' }) } });
@ -92,7 +92,7 @@ function RepoCard(props) {
const getVendorLastPublish = () => {
const lastDate = lastUpdated ? DateTime.fromISO(lastUpdated) : DateTime.now().minus({ days: 1 });
return `${vendor || 'andrewc'} • published ${lastDate.toFormat('MM.d.yy')}${lastDate.toRelative({ unit: 'days' })}`;
return `${vendor || 'andrewc'} • published ${version}${lastDate.toRelative({ unit: 'days' })}`;
}
return (