-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: show error messages in forms for required fields (#839)
* initial * show error messages in forms when required fields are empty * revert package.lock.json * Revert "revert package.lock.json" This reverts commit 748b18f. * package-lock.json revert changes
- Loading branch information
Showing
6 changed files
with
45 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -670,20 +670,22 @@ | |
"label": "Location", | ||
"errors": { | ||
"min": "Your location is too short", | ||
"required": "Looks like your missed this one" | ||
"required": "Looks like you missed this one" | ||
} | ||
}, | ||
"email": { | ||
"label": "Email", | ||
"disabledHelperText": "To edit this field, send a mail to [email protected]", | ||
"errors": { | ||
"phoneOrEmail": "You must enter either your email or phone number", | ||
"invalid": "Your email seems invalid. Is the email address correct?" | ||
} | ||
}, | ||
"phone": { | ||
"label": "Phone", | ||
"disabledHelperText": "To edit this field, send a mail to [email protected]", | ||
"errors": { | ||
"phoneOrEmail": "You must enter either your email or phone number", | ||
"invalid": "I'm having trouble understanding this number. Make sure it's in this format: '+911234567890'. Upto 15 digits are allowed." | ||
} | ||
}, | ||
|
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 |
---|---|---|
|
@@ -618,13 +618,15 @@ | |
"label": "ईमेल", | ||
"disabledHelperText": "इस फ़ील्ड मेल को संपादित करने के लिए [email protected]", | ||
"errors": { | ||
"phoneOrEmail": "आपको ईमेल या फोन नंबर देना होगा", | ||
"invalid": "अमान्य ईमेल" | ||
} | ||
}, | ||
"phone": { | ||
"label": "फ़ोन", | ||
"disabledHelperText": "इस फ़ील्ड मेल को संपादित करने के लिए [email protected]", | ||
"errors": { | ||
"phoneOrEmail": "आपको ईमेल या फोन नंबर देना होगा", | ||
"invalid": "फ़ोन नंबर प्रारूप में दर्ज किया जाना चाहिए: '+999999999'। 15 अंकों तक की अनुमति।" | ||
} | ||
}, | ||
|
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
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