diff --git a/web/src/lib/components/MobileAppDownload.svelte b/web/src/lib/components/MobileAppDownload.svelte index 19ee9e10..d43e47ad 100644 --- a/web/src/lib/components/MobileAppDownload.svelte +++ b/web/src/lib/components/MobileAppDownload.svelte @@ -2,6 +2,7 @@ import { onMount } from 'svelte'; import { Download, Smartphone } from 'lucide-svelte'; import { api } from '#lib/api/client.js'; + import { formatBytes } from '#lib/utils/bytes.js'; import SettingsGroup from '#lib/components/settings/SettingsGroup.svelte'; import SettingRow from '#lib/components/settings/SettingRow.svelte'; @@ -20,11 +21,6 @@ let info = $state(null); - function formatSize(bytes: number): string { - if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(0)} KB`; - return `${(bytes / 1024 / 1024).toFixed(1)} MB`; - } - onMount(async () => { try { const body = await api.get>('/api/client/version'); @@ -44,7 +40,7 @@