feat: add "Forgot Password?" link to the signin form

This commit is contained in:
arraysid
2025-05-27 16:35:59 +07:00
parent d2292a7fa0
commit 8d71173897
@@ -10,6 +10,7 @@ import {
FormMessage, FormMessage,
Input, Input,
} from '@components'; } from '@components';
import Link from 'next/link';
import { LuLoader } from 'react-icons/lu'; import { LuLoader } from 'react-icons/lu';
import { useFormSignin } from '../_hooks/use-form-signin'; import { useFormSignin } from '../_hooks/use-form-signin';
import { usePostSignin } from '../_hooks/use-post-signin'; import { usePostSignin } from '../_hooks/use-post-signin';
@@ -56,6 +57,14 @@ export function SigninForm() {
<Input type="password" placeholder="••••••••" {...field} /> <Input type="password" placeholder="••••••••" {...field} />
</FormControl> </FormControl>
<FormMessage /> <FormMessage />
<div className="text-right mt-1">
<Link
href="/forgot-password"
className="text-sm text-primary-500 font-bold hover:underline"
>
Lupa Password?
</Link>
</div>
</FormItem> </FormItem>
)} )}
/> />