fix: Update PrimeReact and fix all compilation errors

This commit is contained in:
Lions Dev
2025-10-13 05:18:02 +02:00
parent 6ebca4945c
commit 96eb956b0b
793 changed files with 11998 additions and 10690 deletions

8
app/(main)/equipes/page.tsx Normal file → Executable file
View File

@@ -123,7 +123,7 @@ const EquipesPage = () => {
}
};
return <Tag value={rowData.statut} severity={getSeverity(rowData.statut)} />;
return <Tag value={rowData.statut} severity={getSeverity(rowData.statut) as any} />;
};
const specialiteBodyTemplate = (rowData: Equipe) => {
@@ -141,7 +141,7 @@ const EquipesPage = () => {
return colors[specialite] || 'secondary';
};
return <Tag value={rowData.specialite} severity={getSpecialiteColor(rowData.specialite)} />;
return <Tag value={rowData.specialite} severity={getSpecialiteColor(rowData.specialite) as any} />;
};
const chefEquipeBodyTemplate = (rowData: Equipe) => {
@@ -167,7 +167,7 @@ const EquipesPage = () => {
<Tag key={index} value={`${emp.prenom} ${emp.nom}`} className="p-tag-sm" />
))}
{rowData.employes.length > 2 && (
<Badge value={`+${rowData.employes.length - 2}`} severity="secondary" />
<Badge value={`+${rowData.employes.length - 2}`} severity={"secondary" as any} />
)}
</div>
)}
@@ -343,6 +343,7 @@ const EquipesPage = () => {
header={header}
selection={selectedEquipes}
onSelectionChange={(e) => setSelectedEquipes(e.value)}
selectionMode="multiple"
responsiveLayout="scroll"
>
<Column selectionMode="multiple" headerStyle={{ width: '3rem' }} />
@@ -378,3 +379,4 @@ const EquipesPage = () => {
};
export default EquipesPage;