Get rid of custom components folder

This commit is contained in:
Jared Palmer 2024-11-15 10:14:25 -05:00
parent c493ac342b
commit 6d16f67280
38 changed files with 34 additions and 34 deletions

View file

@ -1,58 +0,0 @@
import Form from 'next/form';
import { Input } from '../ui/input';
import { Label } from '../ui/label';
export function AuthForm({
action,
children,
defaultEmail = '',
}: {
action: any;
children: React.ReactNode;
defaultEmail?: string;
}) {
return (
<Form action={action} className="flex flex-col gap-4 px-4 sm:px-16">
<div className="flex flex-col gap-2">
<Label
htmlFor="email"
className="text-zinc-600 font-normal dark:text-zinc-400"
>
Email Address
</Label>
<Input
id="email"
name="email"
className="bg-muted text-md md:text-sm"
type="email"
placeholder="user@acme.com"
autoComplete="email"
required
autoFocus
defaultValue={defaultEmail}
/>
</div>
<div className="flex flex-col gap-2">
<Label
htmlFor="password"
className="text-zinc-600 font-normal dark:text-zinc-400"
>
Password
</Label>
<Input
id="password"
name="password"
className="bg-muted text-md md:text-sm"
type="password"
required
/>
</div>
{children}
</Form>
);
}