Fix server action state exports
This commit is contained in:
@@ -7,7 +7,9 @@ import { Checkbox } from "@/components/ui/checkbox";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { Label } from "@/components/ui/label";
|
||||
|
||||
import { initialRegisterState, registerAction } from "./actions";
|
||||
import { registerAction, type RegisterState } from "./actions";
|
||||
|
||||
const initialRegisterState: RegisterState = { attempt: 0 };
|
||||
|
||||
export function RegisterForm() {
|
||||
const [state, formAction, pending] = useActionState(
|
||||
|
||||
Reference in New Issue
Block a user