fix: reorder imports and clean up unused ones across various components

This commit is contained in:
Mauricio Siu
2026-05-08 18:45:44 -06:00
parent 14af5d293a
commit 4a3fa6e63f
24 changed files with 29 additions and 29 deletions

View File

@@ -18,7 +18,7 @@ function formatBytes(bytes?: number) {
if (bytes === 0) return "0 B";
const sizes = ["B", "KB", "MB", "GB", "TB"];
const i = Math.floor(Math.log(bytes) / Math.log(1024));
const value = bytes / Math.pow(1024, i);
const value = bytes / 1024 ** i;
return `${value.toFixed(2)} ${sizes[i]} (${bytes} bytes)`;
}