fix: Update PrimeReact to v10.8.3 and fix all compilation errors
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user