- fixed typo;
- new version of menu topbar; - registration page - added automatic birth date population;
This commit is contained in:
@@ -76,10 +76,12 @@ const Registration = () => {
|
||||
|
||||
const validateCallback = (data) => {
|
||||
if (data.status === 'SUCCESS') {
|
||||
const { codiceFiscale, firstName, lastName } = data.data;
|
||||
const { codiceFiscale, firstName, lastName, dateOfBirth } = data.data;
|
||||
const dateOfBirthObj = new Date(dateOfBirth);
|
||||
setValue('codiceFiscale', codiceFiscale);
|
||||
setValue('firstName', firstName);
|
||||
setValue('lastName', lastName);
|
||||
setValue('birthDate', dateOfBirthObj);
|
||||
} else {
|
||||
errorMsgs.current.show([
|
||||
{
|
||||
@@ -183,6 +185,7 @@ const Registration = () => {
|
||||
|
||||
<FormField
|
||||
type="datepicker"
|
||||
disabled={true}
|
||||
fieldName="birthDate"
|
||||
label={__('Data di nascita', 'gepafin')}
|
||||
control={control}
|
||||
|
||||
Reference in New Issue
Block a user