File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
docs/framework/react/guides Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ const defaultValues: PasswordFields = {
282
282
confirm_password: ' ' ,
283
283
}
284
284
285
- const FieldGroupPasswordField = withFieldGroup ({
285
+ const FieldGroupPasswordFields = withFieldGroup ({
286
286
defaultValues ,
287
287
// You may also restrict the group to only use forms that implement this submit meta.
288
288
// If none is provided, any form with the right defaultValues may use it.
@@ -384,7 +384,7 @@ function App() {
384
384
385
385
return (
386
386
<form.AppForm >
387
- <PasswordFields
387
+ <FieldGroupPasswordFields
388
388
form = { form }
389
389
// You must specify where the fields can be found
390
390
fields = " account_data"
@@ -393,7 +393,7 @@ function App() {
393
393
<form.Field name = " linked_accounts" mode = " array" >
394
394
{ (field ) =>
395
395
field .state .value .map ((account , i ) => (
396
- <PasswordFields
396
+ <FieldGroupPasswordFields
397
397
key = { account .provider }
398
398
form = { form }
399
399
// The fields may be in nested fields
@@ -439,7 +439,7 @@ function App() {
439
439
440
440
return (
441
441
<form.AppForm >
442
- <PasswordFields
442
+ <FieldGroupPasswordFields
443
443
form = { form }
444
444
// You can map the fields to their equivalent deep key
445
445
fields = { {
@@ -473,7 +473,7 @@ const passwordFields = createFieldMap(defaultValues)
473
473
*/
474
474
475
475
// Usage:
476
- <PasswordFields
476
+ <FieldGroupPasswordFields
477
477
form = { form }
478
478
fields = { passwordFields }
479
479
title = " Passwords"
You can’t perform that action at this time.
0 commit comments