fix: Update PrimeReact and fix all compilation errors
This commit is contained in:
11
app/(main)/dashboard/temps-reel/page.tsx
Normal file → Executable file
11
app/(main)/dashboard/temps-reel/page.tsx
Normal file → Executable file
@@ -297,9 +297,9 @@ const DashboardTempsReel = () => {
|
||||
<div className="text-xs text-color-secondary mt-1">
|
||||
{alerte.heure.toLocaleTimeString('fr-FR')}
|
||||
</div>
|
||||
<Tag
|
||||
value={alerte.type}
|
||||
severity={config.color}
|
||||
<Tag
|
||||
value={alerte.type}
|
||||
severity={config.color as any}
|
||||
className="mt-2"
|
||||
/>
|
||||
</div>
|
||||
@@ -345,7 +345,7 @@ const DashboardTempsReel = () => {
|
||||
header="Urgence"
|
||||
body={(rowData) => {
|
||||
const config = getUrgenceConfig(rowData.urgence);
|
||||
return <Tag value={config.label} severity={config.color} />;
|
||||
return <Tag value={config.label} severity={config.color as any} />;
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -467,4 +467,5 @@ const DashboardTempsReel = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default DashboardTempsReel;
|
||||
export default DashboardTempsReel;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user