summaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/pages/DownloadStats.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/demobank-ui/src/pages/DownloadStats.tsx')
-rw-r--r--packages/demobank-ui/src/pages/DownloadStats.tsx14
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)
})