-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c383e1
commit 5f1e614
Showing
5 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,17 +24,14 @@ export function isEmail({ field }) { | |
```javascript | ||
const fields = { | ||
username: { | ||
label: 'Username', | ||
value: '[email protected]', | ||
validate: [isEmail, shouldBeEqualTo('email')], | ||
related: ['email'], | ||
}, | ||
... | ||
email: { | ||
label: 'Email', | ||
value: '[email protected]', | ||
validate: isEmail, | ||
related: ['username'], | ||
related: ['emailConfirm'], | ||
}, | ||
emailConfirm: { | ||
label: 'Confirm Email', | ||
validate: [isEmail, shouldBeEqualTo('email')], | ||
}, | ||
... | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters