fix: Update PrimeReact to v10.8.3 and fix all compilation errors
This commit is contained in:
@@ -75,8 +75,8 @@ const DevisWorkflowPage = () => {
|
||||
setLoading(true);
|
||||
|
||||
// Charger le devis
|
||||
const devisResponse = await devisService.getById(devisId);
|
||||
setDevis(devisResponse.data);
|
||||
const devisData = await devisService.getById(devisId);
|
||||
setDevis(devisData);
|
||||
|
||||
// TODO: Charger les données de workflow depuis l'API
|
||||
// const workflowResponse = await devisService.getWorkflow(devisId);
|
||||
@@ -346,9 +346,9 @@ const DevisWorkflowPage = () => {
|
||||
<h5 className="text-blue-900 mb-2">{workflowSteps[activeStep].nom}</h5>
|
||||
<p className="text-blue-800 mb-2">{workflowSteps[activeStep].description}</p>
|
||||
</div>
|
||||
<Tag
|
||||
<Tag
|
||||
value={workflowSteps[activeStep].statut}
|
||||
severity={getStepStatus(workflowSteps[activeStep], activeStep)}
|
||||
severity={getStepStatus(workflowSteps[activeStep], activeStep) as any}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -444,9 +444,9 @@ const DevisWorkflowPage = () => {
|
||||
field="statut"
|
||||
header="Statut"
|
||||
body={(rowData, options) => (
|
||||
<Tag
|
||||
<Tag
|
||||
value={rowData.statut}
|
||||
severity={getStepStatus(rowData, options.rowIndex)}
|
||||
severity={getStepStatus(rowData, options.rowIndex) as any}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
||||
@@ -308,7 +308,7 @@ const WorkflowDevis = () => {
|
||||
return (
|
||||
<div className="flex align-items-center gap-2">
|
||||
<i className={`pi ${config.icon} text-${config.color}`} />
|
||||
<Tag value={config.label} severity={config.color} />
|
||||
<Tag value={config.label} severity={config.color as any} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
@@ -343,7 +343,7 @@ const WorkflowDevis = () => {
|
||||
|
||||
return (
|
||||
<div className="flex align-items-center gap-2">
|
||||
<Badge value={`${joursRestants}j`} severity={severity} />
|
||||
<Badge value={`${joursRestants}j`} severity={severity as any} />
|
||||
{rowData.nbRelances > 0 && (
|
||||
<Badge value={`${rowData.nbRelances}R`} severity="info" />
|
||||
)}
|
||||
@@ -378,7 +378,7 @@ const WorkflowDevis = () => {
|
||||
<Button
|
||||
icon="pi pi-eye"
|
||||
size="small"
|
||||
severity="secondary"
|
||||
severity={"secondary" as any}
|
||||
tooltip="Voir détails"
|
||||
/>
|
||||
</div>
|
||||
@@ -496,9 +496,9 @@ const WorkflowDevis = () => {
|
||||
<div><strong>Objet:</strong> {selectedDevis.objet}</div>
|
||||
<div>
|
||||
<strong>Statut:</strong>
|
||||
<Tag
|
||||
value={statutsConfig[selectedDevis.statut as keyof typeof statutsConfig]?.label}
|
||||
severity={statutsConfig[selectedDevis.statut as keyof typeof statutsConfig]?.color}
|
||||
<Tag
|
||||
value={statutsConfig[selectedDevis.statut as keyof typeof statutsConfig]?.label}
|
||||
severity={statutsConfig[selectedDevis.statut as keyof typeof statutsConfig]?.color as any}
|
||||
className="ml-2"
|
||||
/>
|
||||
</div>
|
||||
@@ -524,7 +524,7 @@ const WorkflowDevis = () => {
|
||||
key={transition.action}
|
||||
label={transition.label}
|
||||
icon={`pi ${transition.icon}`}
|
||||
severity={transition.color}
|
||||
severity={transition.color as any}
|
||||
className="justify-content-start"
|
||||
onClick={() => executerAction(transition.action)}
|
||||
/>
|
||||
@@ -542,9 +542,9 @@ const WorkflowDevis = () => {
|
||||
content={(item) => (
|
||||
<div className="p-2">
|
||||
<div className="flex align-items-center gap-2 mb-1">
|
||||
<Tag
|
||||
value={statutsConfig[item.statut as keyof typeof statutsConfig]?.label}
|
||||
severity={statutsConfig[item.statut as keyof typeof statutsConfig]?.color}
|
||||
<Tag
|
||||
value={statutsConfig[item.statut as keyof typeof statutsConfig]?.label}
|
||||
severity={statutsConfig[item.statut as keyof typeof statutsConfig]?.color as any}
|
||||
/>
|
||||
</div>
|
||||
<div className="text-sm text-color-secondary mb-1">
|
||||
@@ -617,4 +617,6 @@ const WorkflowDevis = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default WorkflowDevis;
|
||||
export default WorkflowDevis;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user