feat: add "Forgot Password?" link to the signin form
This commit is contained in:
@@ -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>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user