diff options
author | Sebastian <sebasjm@gmail.com> | 2024-01-19 18:08:46 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-01-24 17:14:01 -0300 |
commit | 579128ce40c7e56f390cadaf2fc2fd4cc6290d68 (patch) | |
tree | 80b4a175077ee5c58818605c3fbed115c4346d5f /packages/demobank-ui/src/pages/DownloadStats.tsx | |
parent | 34b57402fcee8dc17e0306e3d154ddfe771054f8 (diff) | |
download | wallet-core-579128ce40c7e56f390cadaf2fc2fd4cc6290d68.tar.xz |
update header
Diffstat (limited to 'packages/demobank-ui/src/pages/DownloadStats.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/DownloadStats.tsx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/demobank-ui/src/pages/DownloadStats.tsx b/packages/demobank-ui/src/pages/DownloadStats.tsx index 596539e7e..48daacaea 100644 --- a/packages/demobank-ui/src/pages/DownloadStats.tsx +++ b/packages/demobank-ui/src/pages/DownloadStats.tsx @@ -1,6 +1,6 @@ /* This file is part of GNU Taler - (C) 2022 Taler Systems S.A. + (C) 2022-2024 Taler Systems S.A. GNU Taler is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -24,7 +24,7 @@ import { getTimeframesForDate } from "./admin/AdminHome.js"; const logger = new Logger("PublicHistoriesPage"); -interface Props { +interface Props { onCancel: () => void; } @@ -218,18 +218,18 @@ export function DownloadStats({ onCancel }: Props): VNode { </form> </div> - {!lastStep || lastStep.step === lastStep.total ? <div class="h-5 mb-5"/> : <div> + {!lastStep || lastStep.step === lastStep.total ? <div class="h-5 mb-5" /> : <div> <div class="relative mb-5 h-5 rounded-full bg-gray-200"> <div class="h-full animate-pulse rounded-full bg-blue-500" style={{ - width: `${Math.round((((lastStep.step / lastStep.total))* 100) )}%` + width: `${Math.round((((lastStep.step / lastStep.total)) * 100))}%` }}> <span class="absolute inset-0 flex items-center justify-center text-xs font-semibold text-white"> - <i18n.Translate>downloading... {Math.round((((lastStep.step / lastStep.total))* 100) )}</i18n.Translate> + <i18n.Translate>downloading... {Math.round((((lastStep.step / lastStep.total)) * 100))}</i18n.Translate> </span> </div> </div> </div>} - {!downloaded ? <div class="h-5 mb-5"/> : + {!downloaded ? <div class="h-5 mb-5" /> : <a href={"data:text/plain;charset=utf-8," + encodeURIComponent(downloaded)} download={"bank-stats.csv"}> <Attention title={i18n.str`Download completed`}> <i18n.Translate>click here to save the file in your computer</i18n.Translate> @@ -389,7 +389,7 @@ type TableRow = { } async function delay() { return new Promise(res => { - setTimeout(( )=> { + setTimeout(() => { res(null) }, 500) }) |