fix: use correct tab order in login form

This commit is contained in:
Stavros
2025-05-09 23:17:53 +03:00
parent 6453edede6
commit 4e91e567b2

View File

@@ -51,24 +51,24 @@ export const LoginForm = (props: Props) => {
name="password"
render={({ field }) => (
<FormItem className="mb-4">
<FormLabel className="flex flex-row justify-between">
<span>{t("loginPassword")}</span>
<div className="relative">
<FormLabel className="mb-2">{t("loginPassword")}</FormLabel>
<FormControl>
<Input
placeholder={t("loginPassword")}
type="password"
disabled={loading}
{...field}
/>
</FormControl>
<FormMessage />
<a
href="/forgot-password"
className="text-muted-foreground font-normal"
className="text-muted-foreground text-sm absolute right-0 bottom-10"
>
{t("forgotPasswordTitle")}
</a>
</FormLabel>
<FormControl>
<Input
placeholder={t("loginPassword")}
type="password"
disabled={loading}
{...field}
/>
</FormControl>
<FormMessage />
</div>
</FormItem>
)}
/>