-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #258 from Sterbenfr/fix/app
fix(app): Fixed multiple things
- Loading branch information
Showing
25 changed files
with
165 additions
and
229 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
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
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
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 |
---|---|---|
|
@@ -141,7 +141,6 @@ function SitesPage() { | |
id: 'designation_longue', | ||
type: 'input', | ||
value: designationLongue, | ||
required: true, | ||
placeholder: 'Siège social de la société', | ||
onInputChange: handledesignationLongueChange, | ||
maxLength: 40, | ||
|
@@ -150,6 +149,7 @@ function SitesPage() { | |
id: 'designation_courte', | ||
type: 'input', | ||
value: designationCourte, | ||
required: true, | ||
placeholder: 'Siège', | ||
onInputChange: handledesignationCourteChange, | ||
maxLength: 15, | ||
|
@@ -175,33 +175,32 @@ function SitesPage() { | |
type: 'input', | ||
value: numeroTelephone, | ||
placeholder: 'Exemple: 0658905910', | ||
required: true, | ||
onInputChange: handleNumeroTelephoneChange, | ||
maxLength: 12, | ||
}, | ||
{ | ||
id: 'adresse_mail', | ||
type: 'input', | ||
value: adresseMail, | ||
required: true, | ||
placeholder: 'Exemple: [email protected]', | ||
onInputChange: handleAdresseMailChange, | ||
}, | ||
{ | ||
id: 'date_ouverture', | ||
type: 'date', | ||
value: dateOuverture && !isNaN(dateOuverture?.getTime()) | ||
? dateOuverture.toISOString().split('T')[0] | ||
: null, | ||
required: true, | ||
value: | ||
dateOuverture && !isNaN(dateOuverture?.getTime()) | ||
? dateOuverture.toISOString().split('T')[0] | ||
: null, | ||
onInputChange: handleDateOuvertureChange, | ||
}, | ||
{ | ||
id: 'date_fermeture', | ||
type: 'date', | ||
value: dateFermeture && !isNaN(dateFermeture?.getTime()) | ||
? dateFermeture.toISOString().split('T')[0] | ||
: null, | ||
value: | ||
dateFermeture && !isNaN(dateFermeture?.getTime()) | ||
? dateFermeture.toISOString().split('T')[0] | ||
: null, | ||
onInputChange: handleDateFermetureChange, | ||
}, | ||
{ | ||
|
@@ -212,7 +211,6 @@ function SitesPage() { | |
onInputChange: handleCommentairesChange, | ||
maxLength: 200, | ||
}, | ||
|
||
] | ||
|
||
if (dateFermeture !== undefined && dateOuverture > dateFermeture) { | ||
|
@@ -227,12 +225,6 @@ function SitesPage() { | |
fields[6].value = null | ||
} | ||
|
||
if (fields[4].value !== '') { | ||
fields[5].required = false | ||
} else if (fields[5].value !== '') { | ||
fields[4].required = false | ||
} | ||
|
||
return fields | ||
}, [ | ||
dateFermeture, | ||
|
Oops, something went wrong.