aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/pages/LoginForm.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/demobank-ui/src/pages/LoginForm.tsx')
-rw-r--r--packages/demobank-ui/src/pages/LoginForm.tsx10
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/demobank-ui/src/pages/LoginForm.tsx b/packages/demobank-ui/src/pages/LoginForm.tsx
index 5eaad4bb0..627252682 100644
--- a/packages/demobank-ui/src/pages/LoginForm.tsx
+++ b/packages/demobank-ui/src/pages/LoginForm.tsx
@@ -37,8 +37,8 @@ export function LoginForm({ currentUser, fixedUser, onRegister }: { fixedUser?:
const { i18n } = useTranslationContext();
const { api } = useBankCoreApiContext();
const [notification, notify, handleError] = useLocalNotification()
- const {config} = useBankCoreApiContext();
-
+ const { config } = useBankCoreApiContext();
+
const ref = useRef<HTMLInputElement>(null);
useEffect(function focusInput() {
ref.current?.focus();
@@ -123,6 +123,7 @@ export function LoginForm({ currentUser, fixedUser, onRegister }: { fixedUser?:
enterkeyhint="next"
placeholder="identification"
autocomplete="username"
+ title={i18n.str`username of the account`}
required
onInput={(e): void => {
setUsername(e.currentTarget.value);
@@ -137,7 +138,9 @@ export function LoginForm({ currentUser, fixedUser, onRegister }: { fixedUser?:
<div>
<div class="flex items-center justify-between">
- <label for="password" class="block text-sm font-medium leading-6 text-gray-900">Password</label>
+ <label for="password" class="block text-sm font-medium leading-6 text-gray-900">
+ <i18n.Translate>Password</i18n.Translate>
+ </label>
</div>
<div class="mt-2">
<input
@@ -149,6 +152,7 @@ export function LoginForm({ currentUser, fixedUser, onRegister }: { fixedUser?:
enterkeyhint="send"
value={password ?? ""}
placeholder="Password"
+ title={i18n.str`password of the account`}
required
onInput={(e): void => {
setPassword(e.currentTarget.value);