diff --git a/README.md b/README.md
index e9319f3..d9ca71b 100644
--- a/README.md
+++ b/README.md
@@ -104,7 +104,7 @@ This project is built with a modern tech stack:
yarn prisma:generate
```
```bash
- yarn prisa:db:push
+ yarn prisma:db:push
```
- Run the following command to apply migrations and generate Prisma Client:
```bash
diff --git a/src/components/labeled-input.tsx b/src/components/labeled-input.tsx
index 250dd5f..94563dc 100644
--- a/src/components/labeled-input.tsx
+++ b/src/components/labeled-input.tsx
@@ -7,12 +7,14 @@ export default function LabeledInput({
placeholder,
value,
name,
+ autocomplete,
}: {
type: 'text' | 'email' | 'password';
label: string;
placeholder?: string;
value?: string;
name?: string;
+ autocomplete?: string;
}) {
return (
@@ -24,6 +26,7 @@ export default function LabeledInput({
defaultValue={value}
id={name}
name={name}
+ autoComplete={autocomplete}
/>
);
diff --git a/src/components/user/login-form.tsx b/src/components/user/login-form.tsx
index a8e6382..8a00749 100644
--- a/src/components/user/login-form.tsx
+++ b/src/components/user/login-form.tsx
@@ -1,19 +1,30 @@
+'use client';
import { signIn } from '@/auth';
import LabeledInput from '@/components/labeled-input';
import { Button } from '@/components/custom-ui/button';
import { AuthError } from 'next-auth';
import { redirect } from 'next/navigation';
+import { useRef, useState } from 'react';
const SIGNIN_ERROR_URL = '/error';
export default function LoginForm() {
+ const [isSignUp, setIsSignUp] = useState(false);
+
+ const formRef = useRef(null);
+
return (