diff --git a/src/components/dashboard/AtendimentosDia.tsx b/src/components/dashboard/AtendimentosDia.tsx
index ce81a15..86105f5 100644
--- a/src/components/dashboard/AtendimentosDia.tsx
+++ b/src/components/dashboard/AtendimentosDia.tsx
@@ -19,7 +19,6 @@ export const AtendimentosDia: React.FC = () => {
setError(null);
const res = await fetch('/api/atendimentos-dia', {
headers: {
- Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
},
});
@@ -33,7 +32,7 @@ export const AtendimentosDia: React.FC = () => {
}
}
fetchAtendimentos();
- }, [token]);
+ }, []);
if (loading) return
Carregando atendimentos...
;
if (error) return {error}
;
diff --git a/src/components/dashboard/BenchmarkingEscritorio.tsx b/src/components/dashboard/BenchmarkingEscritorio.tsx
index 9a740a1..aef426d 100644
--- a/src/components/dashboard/BenchmarkingEscritorio.tsx
+++ b/src/components/dashboard/BenchmarkingEscritorio.tsx
@@ -17,7 +17,6 @@ export const BenchmarkingEscritorio: React.FC = () => {
setError(null);
const res = await fetch('/api/benchmarking', {
headers: {
- Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
},
});
@@ -31,7 +30,7 @@ export const BenchmarkingEscritorio: React.FC = () => {
}
}
fetchBenchmarking();
- }, [token]);
+ }, []);
if (loading) return Carregando benchmarking...
;
if (error) return {error}
;
diff --git a/src/components/dashboard/CalendarioAtendimentos.tsx b/src/components/dashboard/CalendarioAtendimentos.tsx
index 594843a..d10c4f0 100644
--- a/src/components/dashboard/CalendarioAtendimentos.tsx
+++ b/src/components/dashboard/CalendarioAtendimentos.tsx
@@ -19,7 +19,7 @@ export const CalendarioAtendimentos: React.FC = () => {
setError(null);
const res = await fetch('/api/eventos', {
headers: {
- Authorization: `Bearer ${token}`,
+
'Content-Type': 'application/json',
},
});
@@ -33,7 +33,7 @@ export const CalendarioAtendimentos: React.FC = () => {
}
}
fetchEventos();
- }, [token]);
+ }, []);
// Simulação de calendário mensal
const diasMes = Array.from({ length: 30 }, (_, i) => i + 1);
diff --git a/src/components/dashboard/WorkflowTarefas.tsx b/src/components/dashboard/WorkflowTarefas.tsx
index 55213fc..0608737 100644
--- a/src/components/dashboard/WorkflowTarefas.tsx
+++ b/src/components/dashboard/WorkflowTarefas.tsx
@@ -18,7 +18,6 @@ export const WorkflowTarefas: React.FC = () => {
setError(null);
const res = await fetch('/api/tarefas', {
headers: {
- Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
},
});
@@ -32,7 +31,7 @@ export const WorkflowTarefas: React.FC = () => {
}
}
fetchTarefas();
- }, [token]);
+ }, []);
if (loading) return Carregando tarefas...
;
if (error) return {error}
;