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

@@ -520,7 +520,7 @@ const CalendrierPlanningPage = () => {
<Button
icon="pi pi-pencil"
size="small"
severity="secondary"
severity={"secondary" as any}
outlined
/>
<Button
@@ -697,12 +697,12 @@ const CalendrierPlanningPage = () => {
<Tag
value={typeBodyTemplate(event).props.children[1]}
severity="info"
size="small"
size="normal"
/>
<Tag
value={priorityBodyTemplate(event).props.value}
severity={priorityBodyTemplate(event).props.severity}
size="small"
size="normal"
/>
</div>
</div>
@@ -1010,4 +1010,6 @@ const CalendrierPlanningPage = () => {
);
};
export default CalendrierPlanningPage;
export default CalendrierPlanningPage;

View File

@@ -620,7 +620,7 @@ const EquipesPage = () => {
<Tag key={specialite} value={specialite} severity="info" />
))}
{(rowData.specialites?.length || 0) > 2 && (
<Tag value={`+${(rowData.specialites?.length || 0) - 2}`} severity="secondary" />
<Tag value={`+${(rowData.specialites?.length || 0) - 2}`} severity={"secondary" as any} />
)}
</div>
);
@@ -642,7 +642,7 @@ const EquipesPage = () => {
<Button
icon="pi pi-pencil"
size="small"
severity="secondary"
severity={"secondary" as any}
outlined
onClick={() => editEquipe(rowData)}
/>
@@ -718,7 +718,7 @@ const EquipesPage = () => {
<Button
icon="pi pi-pencil"
size="small"
severity="secondary"
severity={"secondary" as any}
outlined
onClick={() => editEmploye(rowData)}
/>
@@ -1351,4 +1351,6 @@ const EquipesPage = () => {
);
};
export default EquipesPage;
export default EquipesPage;

View File

@@ -754,10 +754,10 @@ const MaterielPage = () => {
<div className="flex align-items-center gap-2">
<Badge value={maintenancesMatériel.length} />
{maintenancesPrevues > 0 && (
<Tag value={`${maintenancesPrevues} prévue(s)`} severity="info" size="small" />
<Tag value={`${maintenancesPrevues} prévue(s)`} severity="info" size="normal" />
)}
{maintenancesEnCours > 0 && (
<Tag value={`${maintenancesEnCours} en cours`} severity="warning" size="small" />
<Tag value={`${maintenancesEnCours} en cours`} severity="warning" size="normal" />
)}
</div>
);
@@ -1144,7 +1144,7 @@ const MaterielPage = () => {
<Button
label="Historique"
icon="pi pi-history"
severity="secondary"
severity={"secondary" as any}
size="small"
className="p-button-text p-button-rounded"
onClick={() => {
@@ -1549,4 +1549,6 @@ const MaterielPage = () => {
);
};
export default MaterielPage;
export default MaterielPage;