fix: Update PrimeReact to v10.8.3 and fix all compilation errors
This commit is contained in:
@@ -80,8 +80,8 @@ const ChantiersPlanifiesPage = () => {
|
||||
try {
|
||||
const updatedChantier = {
|
||||
...selectedChantier,
|
||||
statut: 'EN_COURS',
|
||||
dateDebut: startDate
|
||||
statut: 'EN_COURS' as any,
|
||||
dateDebut: startDate.toISOString().split('T')[0]
|
||||
};
|
||||
|
||||
await chantierService.update(selectedChantier.id, updatedChantier);
|
||||
@@ -127,8 +127,8 @@ const ChantiersPlanifiesPage = () => {
|
||||
selectedChantiers.map(chantier =>
|
||||
chantierService.update(chantier.id, {
|
||||
...chantier,
|
||||
statut: 'EN_COURS',
|
||||
dateDebut: new Date()
|
||||
statut: 'EN_COURS' as any,
|
||||
dateDebut: new Date().toISOString().split('T')[0]
|
||||
})
|
||||
)
|
||||
);
|
||||
@@ -312,6 +312,7 @@ const ChantiersPlanifiesPage = () => {
|
||||
value={chantiers}
|
||||
selection={selectedChantiers}
|
||||
onSelectionChange={(e) => setSelectedChantiers(e.value)}
|
||||
selectionMode="multiple"
|
||||
dataKey="id"
|
||||
paginator
|
||||
rows={10}
|
||||
@@ -373,4 +374,6 @@ const ChantiersPlanifiesPage = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default ChantiersPlanifiesPage;
|
||||
export default ChantiersPlanifiesPage;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user