Skip to content

Commit aa125fd

Browse files
committed
Rename testing forms
1 parent 7f70eaa commit aa125fd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pages/docs/test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function ShoppingListForm() {
104104
);
105105
}
106106

107-
function ToggleForm() {
107+
function ToggleExample() {
108108
const form = useForm({
109109
name: "codestix",
110110
location: { long: 123, lat: 456 }, // Object field
@@ -146,7 +146,7 @@ function FormJson(props: { form: FormState<any> }) {
146146
}
147147

148148
// Usage
149-
function ExampleForm() {
149+
function FormJsonExample() {
150150
const form = useForm({ name: "John", age: 19 });
151151
return (
152152
<form
@@ -181,7 +181,7 @@ function loginValidator(values: LoginRequest): ErrorMap<LoginRequest, string> {
181181
};
182182
}
183183

184-
function FormExample() {
184+
function ValidationExample() {
185185
const form = useForm<LoginRequest>(
186186
{ email: "", password: "" },
187187
loginValidator, // Pass loginValidator to useForm
@@ -214,11 +214,11 @@ export default function Testing() {
214214
<hr />
215215
<ShoppingListForm />
216216
<hr />
217-
<ToggleForm />
217+
<ToggleExample />
218218
<hr />
219-
<ExampleForm />
219+
<FormJsonExample />
220220
<hr />
221-
<FormExample />
221+
<ValidationExample />
222222
</>
223223
);
224224
}

0 commit comments

Comments
 (0)