Next.js 15 fast follows (#455)
This commit is contained in:
parent
1e8ab6e8e8
commit
7faa5f1c9f
2 changed files with 18 additions and 15 deletions
|
|
@ -1,17 +1,19 @@
|
|||
import { Input } from "../ui/input";
|
||||
import { Label } from "../ui/label";
|
||||
import Form from 'next/form';
|
||||
|
||||
import { Input } from '../ui/input';
|
||||
import { Label } from '../ui/label';
|
||||
|
||||
export function AuthForm({
|
||||
action,
|
||||
children,
|
||||
defaultEmail = "",
|
||||
defaultEmail = '',
|
||||
}: {
|
||||
action: any;
|
||||
children: React.ReactNode;
|
||||
defaultEmail?: string;
|
||||
}) {
|
||||
return (
|
||||
<form action={action} className="flex flex-col gap-4 px-4 sm:px-16">
|
||||
<Form action={action} className="flex flex-col gap-4 px-4 sm:px-16">
|
||||
<div className="flex flex-col gap-2">
|
||||
<Label
|
||||
htmlFor="email"
|
||||
|
|
@ -48,6 +50,6 @@ export function AuthForm({
|
|||
</div>
|
||||
|
||||
{children}
|
||||
</form>
|
||||
</Form>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue