diff options
Diffstat (limited to 'packages/bank-ui/src')
-rw-r--r-- | packages/bank-ui/src/hooks/account.ts | 2 | ||||
-rw-r--r-- | packages/bank-ui/src/pages/AccountPage/views.tsx | 4 | ||||
-rw-r--r-- | packages/bank-ui/src/pages/BankFrame.tsx | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/packages/bank-ui/src/hooks/account.ts b/packages/bank-ui/src/hooks/account.ts index 43d43a3f2..b18aad9ad 100644 --- a/packages/bank-ui/src/hooks/account.ts +++ b/packages/bank-ui/src/hooks/account.ts @@ -292,7 +292,7 @@ export function useTransactions(account: string, initial?: number) { TalerCoreBankResultByMethod<"getTransactions">, TalerHttpError >([account, token, offset, "getTransactions"], fetcher, { - refreshInterval: 0, + refreshInterval: 10000, refreshWhenHidden: false, refreshWhenOffline: false, // revalidateOnMount: false, diff --git a/packages/bank-ui/src/pages/AccountPage/views.tsx b/packages/bank-ui/src/pages/AccountPage/views.tsx index 42892f536..93a769147 100644 --- a/packages/bank-ui/src/pages/AccountPage/views.tsx +++ b/packages/bank-ui/src/pages/AccountPage/views.tsx @@ -42,7 +42,7 @@ function ShowDemoInfo({ if (!settings.showDemoDescription) return <Fragment />; return ( <Attention - title={i18n.str`This is a demo bank`} + title={i18n.str`This is a demo`} onClose={() => { updateSettings("showDemoDescription", false); }} @@ -59,7 +59,7 @@ function ShowDemoInfo({ </i18n.Translate> ) : ( <i18n.Translate> - This part of the demo shows how a bank that supports Taler directly + Here you will be able to see how a bank that supports Taler directly would work. </i18n.Translate> )} diff --git a/packages/bank-ui/src/pages/BankFrame.tsx b/packages/bank-ui/src/pages/BankFrame.tsx index db757ee07..62b5c6f90 100644 --- a/packages/bank-ui/src/pages/BankFrame.tsx +++ b/packages/bank-ui/src/pages/BankFrame.tsx @@ -64,6 +64,8 @@ export function BankFrame({ const settings = useSettingsContext(); const [preferences, updatePreferences] = usePreferences(); const [, , resetBankState] = useBankState(); + const d = useBankCoreApiContext(); + const config = d === undefined ? undefined : d.config; const [error, resetError] = useErrorBoundary(); @@ -90,7 +92,7 @@ export function BankFrame({ > <div class="bg-indigo-600 pb-32"> <Header - title="Bank" + title={config?.bank_name ?? "Bank"} iconLinkURL={settings.iconLinkURL ?? "#"} profileURL={routeAccountDetails?.url({})} notificationURL={ |