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

@@ -15,7 +15,7 @@ import { Calendar } from 'primereact/calendar';
import { InputNumber } from 'primereact/inputnumber';
import { chantierService } from '../../../../services/api';
import { formatDate, formatCurrency } from '../../../../utils/formatters';
import type { Chantier } from '../../../../types/btp';
import type { Chantier, StatutChantier } from '../../../../types/btp';
const ChantiersEnCoursPage = () => {
const [chantiers, setChantiers] = useState<Chantier[]>([]);
@@ -86,7 +86,7 @@ const ChantiersEnCoursPage = () => {
try {
const updatedChantier = {
...selectedChantier,
statut: 'TERMINE',
statut: 'TERMINE' as StatutChantier,
dateFinReelle: updateData.dateFinReelle,
montantReel: updateData.montantReel
};
@@ -269,6 +269,7 @@ const ChantiersEnCoursPage = () => {
value={chantiers}
selection={selectedChantiers}
onSelectionChange={(e) => setSelectedChantiers(e.value)}
selectionMode="multiple"
dataKey="id"
paginator
rows={10}
@@ -334,4 +335,7 @@ const ChantiersEnCoursPage = () => {
);
};
export default ChantiersEnCoursPage;
export default ChantiersEnCoursPage;