fix: Resolve TypeScript errors in page.tsx and phases-chantier/page.tsx
This commit is contained in:
@@ -92,7 +92,7 @@ const MaintenancesPlanifieesPage = () => {
|
||||
|
||||
const updatedMaintenance = {
|
||||
...maintenance,
|
||||
datePrevue: nouvelleDate,
|
||||
datePrevue: nouvelleDate.toISOString(),
|
||||
notes: `${maintenance.notes || ''}\nReportée le ${formatDate(new Date())}`
|
||||
};
|
||||
|
||||
@@ -311,7 +311,7 @@ const MaintenancesPlanifieesPage = () => {
|
||||
<div>
|
||||
<div className="font-semibold">{m.materiel?.nom}</div>
|
||||
<div className="text-sm text-500">{m.description}</div>
|
||||
<Tag value={m.type?.replace('_', ' ')} severity={getTypeSeverity(m.type)} size="normal" className="mt-1" />
|
||||
<Tag value={m.type?.replace('_', ' ')} severity={getTypeSeverity(m.type)} className="mt-1" />
|
||||
</div>
|
||||
)
|
||||
}));
|
||||
@@ -394,6 +394,7 @@ const MaintenancesPlanifieesPage = () => {
|
||||
value={maintenances}
|
||||
selection={selectedMaintenances}
|
||||
onSelectionChange={(e) => setSelectedMaintenances(e.value)}
|
||||
selectionMode="checkbox"
|
||||
dataKey="id"
|
||||
paginator
|
||||
rows={10}
|
||||
|
||||
Reference in New Issue
Block a user