diff --git a/packages/react/src/FileList/README.md b/packages/react/src/FileList/README.md index fa86634ac7..e149ac3384 100644 --- a/packages/react/src/FileList/README.md +++ b/packages/react/src/FileList/README.md @@ -1,5 +1,5 @@ -# React FileList component +# React File List component -[FileList documentation](../../../css/src/components/file-list/README.md) +[File List documentation](../../../css/src/components/file-list/README.md) diff --git a/packages/react/src/common/formatFileSize.tsx b/packages/react/src/common/formatFileSize.tsx index d95c3919db..a17666e3e6 100644 --- a/packages/react/src/common/formatFileSize.tsx +++ b/packages/react/src/common/formatFileSize.tsx @@ -4,9 +4,9 @@ */ /** - * - * @param fileType - * @returns Human readable file size + * @param fileSize The size of the file in bytes. + * @param precision The number of significant digits in the output. + * @returns A human readable file size */ export const formatFileSize = (fileSize: number, precision = 3) => { const UNITS = ['bytes', 'kB', 'MB', 'GB']