Filled in empty test page for login, logout and register

This commit is contained in:
Eero Holmala 2024-05-28 12:46:14 +03:00
parent 3c607c89f8
commit e0359ea35d
3 changed files with 26 additions and 23 deletions

View File

@ -1,24 +1,9 @@
"use client" const Login = () => {
return (
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form"; <nav>
import { Input } from "@/components/ui/input"; Test
import { useForm } from "react-hook-form"; </nav>
export default function Login() {
const form = useForm()
return(
<FormField
control={form.control}
name="username"
render={({ field }) => (
<FormItem>
<FormLabel>Username</FormLabel>
<FormControl>
<Input placeholder="shadcn" {...field} />
</FormControl>
<FormDescription>This is your public display name.</FormDescription>
<FormMessage />
</FormItem>
)}/>
); );
} }
export default Login;

View File

@ -0,0 +1,9 @@
const Logout = () => {
return (
<nav>
Test
</nav>
);
}
export default Logout;

View File

@ -0,0 +1,9 @@
const Register = () => {
return (
<nav>
Test
</nav>
);
}
export default Register;