1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-23 22:25:14 -04:00

Convert formatBytes to TypeScript

Closes #10272
This commit is contained in:
Bogdan
2024-08-14 18:48:49 +03:00
parent abc7efabea
commit 6c456e57d8
5 changed files with 8 additions and 8 deletions
@@ -134,10 +134,12 @@ function getInfoRowProps(
}
if (name === 'sizeOnDisk') {
const { sizeOnDisk = 0 } = props;
return {
title: 'Size on Disk',
iconName: icons.DRIVE,
label: formatBytes(props.sizeOnDisk),
label: formatBytes(sizeOnDisk),
};
}
@@ -58,7 +58,7 @@ function MovieIndexPosterInfo(props: MovieIndexPosterInfoProps) {
certification,
originalTitle,
originalLanguage,
sizeOnDisk,
sizeOnDisk = 0,
tags = [],
sortKey,
showRelativeDates,