From 4ee903eb5e639fa0e122a689cc431e8f18ca1197 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 6 Nov 2023 11:54:45 -0300 Subject: aml ui --- .../aml-backoffice-ui/src/pages/UnlockAccount.tsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'packages/aml-backoffice-ui/src/pages/UnlockAccount.tsx') diff --git a/packages/aml-backoffice-ui/src/pages/UnlockAccount.tsx b/packages/aml-backoffice-ui/src/pages/UnlockAccount.tsx index 83d8767fb..a6570ffcc 100644 --- a/packages/aml-backoffice-ui/src/pages/UnlockAccount.tsx +++ b/packages/aml-backoffice-ui/src/pages/UnlockAccount.tsx @@ -1,5 +1,5 @@ import { TranslatedString, UnwrapKeyError } from "@gnu-taler/taler-util"; -import { notifyError, notifyInfo } from "@gnu-taler/web-util/browser"; +import { notifyError, notifyInfo, useTranslationContext } from "@gnu-taler/web-util/browser"; import { VNode, h } from "preact"; import { createNewForm } from "../handlers/forms.js"; @@ -10,6 +10,7 @@ export function UnlockAccount({ onAccountUnlocked: (password: string) => void; onRemoveAccount: () => void; }): VNode { + const { i18n } = useTranslationContext() const Form = createNewForm<{ password: string; }>(); @@ -17,12 +18,12 @@ export function UnlockAccount({ return (
-

- Account locked -

+

+ Account locked +

- Your account is normally locked anytime you reload. To unlock type - your password again. + Your account is normally locked anytime you reload. To unlock type + your password again.

@@ -30,7 +31,7 @@ export function UnlockAccount({
{ try { @@ -63,7 +64,7 @@ export function UnlockAccount({ type="submit" class="flex w-full justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600" > - Unlock + Unlock
@@ -75,7 +76,7 @@ export function UnlockAccount({ }} class="m-4 block rounded-md bg-red-600 px-3 py-2 text-center text-sm text-white shadow-sm hover:bg-red-500 " > - Remove account + Forget account
-- cgit v1.2.3