diff --git a/src/components/dashboard/BenchmarkingEscritorio.tsx b/src/components/dashboard/BenchmarkingEscritorio.tsx
index 29db6db..e8f6b96 100644
--- a/src/components/dashboard/BenchmarkingEscritorio.tsx
+++ b/src/components/dashboard/BenchmarkingEscritorio.tsx
@@ -1,5 +1,6 @@
import React from 'react';
import { useBenchmarking } from '../../hooks/useBenchmarking';
+import { CheckCircleIcon, XCircleIcon, FolderOpenIcon } from '@heroicons/react/24/solid';
export const BenchmarkingEscritorio: React.FC = () => {
// Hook para buscar e calcular benchmarking
@@ -9,23 +10,45 @@ export const BenchmarkingEscritorio: React.FC = () => {
if (error) return
Erro ao buscar benchmarking
;
if (!benchmarking) return null;
+ // Cálculo da porcentagem de sucesso das causas
+ const totalCausas = benchmarking.procedentes + benchmarking.improcedentesOuSemMerito;
+ const sucessoPercent = totalCausas > 0 ? Math.round((benchmarking.procedentes / totalCausas) * 100) : 0;
+
return (
-
-
-
Total de processos:
-
{benchmarking.totalProcessos}
+
+
+
+
+
+
Total de processos
+
{benchmarking.totalProcessos}
+
+
+
+
+
+
Processos ativos
+
{benchmarking.ativos}
+
+
+
+
+
+
Julgados procedentes
+
{benchmarking.procedentes}
+
+
+
+
+
+
Improcedentes/Sem mérito
+
{benchmarking.improcedentesOuSemMerito}
+
+
-
- Processos ativos:
- {benchmarking.ativos}
-
-
- Julgados procedentes:
- {benchmarking.procedentes}
-
-
-
Improcedentes/Sem análise de mérito:
-
{benchmarking.improcedentesOuSemMerito}
+
+ % de sucesso das causas
+ {sucessoPercent}%
);