Add Artist (discography) size, and show sizes in Download caption
This commit is contained in:
@@ -5,7 +5,7 @@ const SizeField = ({ record = {}, source }) => {
|
||||
return <span>{formatBytes(record[source])}</span>
|
||||
}
|
||||
|
||||
function formatBytes(bytes, decimals = 2) {
|
||||
export const formatBytes = (bytes, decimals = 2) => {
|
||||
if (bytes === 0) return '0 Bytes'
|
||||
|
||||
const k = 1024
|
||||
|
||||
Reference in New Issue
Block a user