mirror of
https://github.com/nicotsx/zerobyte.git
synced 2025-12-23 21:47:47 -05:00
chore: small code style changes
This commit is contained in:
@@ -459,7 +459,7 @@ const File = memo(({ file, onFileSelect, selected, withCheckbox, checked, onChec
|
||||
<Checkbox checked={checked} onCheckedChange={handleCheckboxChange} onClick={(e) => e.stopPropagation()} />
|
||||
)}
|
||||
<span className="truncate">{name}</span>
|
||||
{size != null && (
|
||||
{typeof size === "number" && (
|
||||
<span className="ml-auto shrink-0 text-xs text-muted-foreground">
|
||||
<ByteSize bytes={size} />
|
||||
</span>
|
||||
@@ -532,7 +532,7 @@ function buildFileList(files: FileEntry[], foldersOnly = false): Node[] {
|
||||
name,
|
||||
fullPath: file.path,
|
||||
depth,
|
||||
...(isFile && file.size != null ? { size: file.size } : {}),
|
||||
size: file.size,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user