v1 review pass: fixed some minor bugs

This commit is contained in:
khannurien
2026-03-16 11:08:39 +00:00
parent e88fed4e98
commit 867e64cb5b
37 changed files with 1228 additions and 400 deletions

View File

@@ -16,7 +16,9 @@ function mimeIcon(mime: string): string {
return "📁";
}
export default function FilePreview({ dump, compact = false }: FilePreviewProps) {
export default function FilePreview(
{ dump, compact = false }: FilePreviewProps,
) {
const fileUrl = `${API_URL}/api/files/${dump.id}?v=${dump.fileSize ?? 0}`;
const mime = dump.fileMime ?? "";