From cdb7d78f22a98a9bf48d44c2106e29dd48338d78 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 27 Sep 2023 11:31:58 -0300 Subject: missing multiplier --- .../demobank-ui/src/hooks/useCredentialsChecker.ts | 2 +- .../demobank-ui/src/pages/AccountPage/views.tsx | 119 +++++++-------------- 2 files changed, 40 insertions(+), 81 deletions(-) diff --git a/packages/demobank-ui/src/hooks/useCredentialsChecker.ts b/packages/demobank-ui/src/hooks/useCredentialsChecker.ts index 7745e2f5e..b3dedb654 100644 --- a/packages/demobank-ui/src/hooks/useCredentialsChecker.ts +++ b/packages/demobank-ui/src/hooks/useCredentialsChecker.ts @@ -15,7 +15,7 @@ export function useCredentialsChecker() { scope: "readwrite" as "write", //FIX: different than merchant duration: { // d_us: "forever" //FIX: should return shortest - d_us: 60 * 60 * 24 * 7 + d_us: 60 * 60 * 24 * 7 * 1000 * 1000 }, refreshable: true, } diff --git a/packages/demobank-ui/src/pages/AccountPage/views.tsx b/packages/demobank-ui/src/pages/AccountPage/views.tsx index 32aedebf2..83846be90 100644 --- a/packages/demobank-ui/src/pages/AccountPage/views.tsx +++ b/packages/demobank-ui/src/pages/AccountPage/views.tsx @@ -31,94 +31,53 @@ export function InvalidIbanView({ error }: State.InvalidIban) { const IS_PUBLIC_ACCOUNT_ENABLED = false -function ImportantMessage(): VNode { - const { i18n } = useTranslationContext(); - return
-
-
-
-
-
-

- - Welcome, "account" - - -

-

- {bankUiSettings.showDemoNav && -

- {IS_PUBLIC_ACCOUNT_ENABLED ? ( - - This part of the demo shows how a bank that supports Taler - directly would work. In addition to using your own bank - account, you can also see the transaction history of some{" "} - Public Accounts. - - ) : ( - - This part of the demo shows how a bank that supports Taler - directly would work. - - )} -

- }

-
-
-
-
- -
-
-
-
-} - -function ShowDemoInfo():VNode { +function ShowDemoInfo(): VNode { const { i18n } = useTranslationContext(); const [settings, updateSettings] = useSettings(); if (!settings.showDemoDescription) return return
-
-
- -
-
-

- This is a demo bank! -

-
-

- - This part of the demo shows how a bank that supports Taler - directly would work. In addition to using your own bank - account, you can also see the transaction history of some{" "} - Public Accounts. - -

-

- -

+
+
+ +
+
+

+ This is a demo bank! +

+
+ {IS_PUBLIC_ACCOUNT_ENABLED ? ( + + This part of the demo shows how a bank that supports Taler + directly would work. In addition to using your own bank + account, you can also see the transaction history of some{" "} + Public Accounts. + + ) : ( + + This part of the demo shows how a bank that supports Taler + directly would work. + + )} +

+ +

+
-
} export function ReadyView({ account, limit, goToBusinessAccount, goToConfirmOperation }: State.Ready): VNode<{}> { @@ -128,7 +87,7 @@ export function ReadyView({ account, limit, goToBusinessAccount, goToConfirmOper - + ; -- cgit v1.2.3