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

@@ -16,6 +16,7 @@ import { ProgressBar } from 'primereact/progressbar';
import { devisService } from '../../../../services/api';
import { formatDate, formatCurrency } from '../../../../utils/formatters';
import type { Devis } from '../../../../types/btp';
import { StatutDevis } from '../../../../types/btp';
const DevisAttentePage = () => {
const [devis, setDevis] = useState<Devis[]>([]);
@@ -118,15 +119,15 @@ const DevisAttentePage = () => {
switch (actionType) {
case 'send':
newStatut = 'ENVOYE';
newStatut = StatutDevis.ENVOYE;
message = 'Devis envoyé au client';
break;
case 'accept':
newStatut = 'ACCEPTE';
newStatut = StatutDevis.ACCEPTE;
message = 'Devis accepté par le client';
break;
case 'refuse':
newStatut = 'REFUSE';
newStatut = StatutDevis.REFUSE;
message = 'Devis refusé par le client';
break;
case 'extend':
@@ -353,9 +354,9 @@ STATISTIQUES:
return (
<div className="flex align-items-center gap-2">
<Tag
value={rowData.statut === 'BROUILLON' ? 'Brouillon' : 'Envoyé'}
severity={rowData.statut === 'BROUILLON' ? 'secondary' : 'info'}
<Tag
value={rowData.statut === 'BROUILLON' ? 'Brouillon' : 'Envoyé'}
severity={(rowData.statut === 'BROUILLON' ? 'secondary' : 'info') as any}
/>
<Tag
value={urgency.level}
@@ -484,6 +485,7 @@ STATISTIQUES:
value={devis}
selection={selectedDevis}
onSelectionChange={(e) => setSelectedDevis(e.value)}
selectionMode="multiple"
dataKey="id"
paginator
rows={10}
@@ -549,4 +551,5 @@ STATISTIQUES:
);
};
export default DevisAttentePage;
export default DevisAttentePage;