chore: small code style changes
This commit is contained in:
parent
91e76ec902
commit
01f247c9a0
1 changed files with 2 additions and 2 deletions
|
|
@ -459,7 +459,7 @@ const File = memo(({ file, onFileSelect, selected, withCheckbox, checked, onChec
|
||||||
<Checkbox checked={checked} onCheckedChange={handleCheckboxChange} onClick={(e) => e.stopPropagation()} />
|
<Checkbox checked={checked} onCheckedChange={handleCheckboxChange} onClick={(e) => e.stopPropagation()} />
|
||||||
)}
|
)}
|
||||||
<span className="truncate">{name}</span>
|
<span className="truncate">{name}</span>
|
||||||
{size != null && (
|
{typeof size === "number" && (
|
||||||
<span className="ml-auto shrink-0 text-xs text-muted-foreground">
|
<span className="ml-auto shrink-0 text-xs text-muted-foreground">
|
||||||
<ByteSize bytes={size} />
|
<ByteSize bytes={size} />
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -532,7 +532,7 @@ function buildFileList(files: FileEntry[], foldersOnly = false): Node[] {
|
||||||
name,
|
name,
|
||||||
fullPath: file.path,
|
fullPath: file.path,
|
||||||
depth,
|
depth,
|
||||||
...(isFile && file.size != null ? { size: file.size } : {}),
|
size: file.size,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue