aboutsummaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/pages/UnlockAccount.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-11-06 11:54:45 -0300
committerSebastian <sebasjm@gmail.com>2023-11-06 11:54:45 -0300
commit4ee903eb5e639fa0e122a689cc431e8f18ca1197 (patch)
treed2cf28bcddb03f650fe7913ff2db8e48145740c4 /packages/aml-backoffice-ui/src/pages/UnlockAccount.tsx
parent3d1ab082d4a66df08fcb468d04198c055d00b8c5 (diff)
downloadwallet-core-4ee903eb5e639fa0e122a689cc431e8f18ca1197.tar.xz
aml ui
Diffstat (limited to 'packages/aml-backoffice-ui/src/pages/UnlockAccount.tsx')
-rw-r--r--packages/aml-backoffice-ui/src/pages/UnlockAccount.tsx19
1 files changed, 10 insertions, 9 deletions
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 (
<div class="flex min-h-full flex-col ">
<div class="sm:mx-auto sm:w-full sm:max-w-md">
- <h2 class="mt-6 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900">
- Account locked
- </h2>
+ <h1 class="mt-6 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900">
+ <i18n.Translate>Account locked</i18n.Translate>
+ </h1>
<p class="mt-6 text-lg leading-8 text-gray-600">
- Your account is normally locked anytime you reload. To unlock type
- your password again.
+ <i18n.Translate>Your account is normally locked anytime you reload. To unlock type
+ your password again.</i18n.Translate>
</p>
</div>
@@ -30,7 +31,7 @@ export function UnlockAccount({
<div class="bg-gray-100 px-6 py-6 shadow sm:rounded-lg sm:px-12">
<Form.Provider
initialValue={{
- password: "welcometo.5146",
+ password: "qwe",
}}
onSubmit={async (v) => {
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
+ <i18n.Translate>Unlock</i18n.Translate>
</button>
</div>
</Form.Provider>
@@ -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
+ <i18n.Translate>Forget account</i18n.Translate>
</button>
</div>
</div>