refresh signed files

This commit is contained in:
m
2026-07-11 23:09:35 +02:00
parent f7cf2a2bef
commit b6e38e930c
5 changed files with 72 additions and 31 deletions
+1 -2
View File
@@ -10,8 +10,7 @@ interface FileCardProps {
}
export function FileCard({ file, onPress }: FileCardProps) {
const { localUri, loading } = useFileImage(file.url);
console.log(localUri)
const { localUri, loading } = useFileImage(file.url, file.name);
const formatSize = (bytes: number) => {
if (bytes < 1024) return `${bytes} B`;
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;