fix: Update PrimeReact to v10.8.3 and fix all compilation errors

This commit is contained in:
dahoud
2025-10-13 03:01:36 +00:00
parent 2a2e54c0e3
commit 30cad6220b
85 changed files with 928 additions and 2020 deletions

View File

@@ -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;