From 9c2df341ea348eadf8d06c2f9169dad54b2a1a7b Mon Sep 17 00:00:00 2001 From: "Rodrigo B. de Sousa Martins" Date: Tue, 15 Jul 2025 19:28:40 -0300 Subject: [PATCH] dashboard: reimaginacao Signed-off-by: Rodrigo B. de Sousa Martins --- src/components/dashboard/AtendimentosDia.tsx | 2 -- src/components/dashboard/BenchmarkingEscritorio.tsx | 2 -- src/components/dashboard/CalendarioAtendimentos.tsx | 2 -- src/components/dashboard/DashboardLayout.tsx | 2 -- src/components/dashboard/WorkflowTarefas.tsx | 2 -- 5 files changed, 10 deletions(-) diff --git a/src/components/dashboard/AtendimentosDia.tsx b/src/components/dashboard/AtendimentosDia.tsx index 8b52ca6..ce81a15 100644 --- a/src/components/dashboard/AtendimentosDia.tsx +++ b/src/components/dashboard/AtendimentosDia.tsx @@ -1,5 +1,4 @@ import React, { useEffect, useState } from 'react'; -import { useAuth } from '../../hooks/useAuth'; interface Atendimento { id: string; @@ -9,7 +8,6 @@ interface Atendimento { } export const AtendimentosDia: React.FC = () => { - const { token } = useAuth(); const [atendimentos, setAtendimentos] = useState([]); const [loading, setLoading] = useState(true); const [error, setError] = useState(null); diff --git a/src/components/dashboard/BenchmarkingEscritorio.tsx b/src/components/dashboard/BenchmarkingEscritorio.tsx index 3b8679d..9a740a1 100644 --- a/src/components/dashboard/BenchmarkingEscritorio.tsx +++ b/src/components/dashboard/BenchmarkingEscritorio.tsx @@ -1,5 +1,4 @@ import React, { useEffect, useState } from 'react'; -import { useAuth } from '../../contexts/AuthContext'; interface Benchmarking { ajuizados15dias: number; @@ -7,7 +6,6 @@ interface Benchmarking { } export const BenchmarkingEscritorio: React.FC = () => { - const { token } = useAuth(); const [benchmarking, setBenchmarking] = useState(null); const [loading, setLoading] = useState(true); const [error, setError] = useState(null); diff --git a/src/components/dashboard/CalendarioAtendimentos.tsx b/src/components/dashboard/CalendarioAtendimentos.tsx index 6617792..594843a 100644 --- a/src/components/dashboard/CalendarioAtendimentos.tsx +++ b/src/components/dashboard/CalendarioAtendimentos.tsx @@ -1,5 +1,4 @@ import React, { useEffect, useState } from 'react'; -import { useAuth } from '../../hooks/useAuth'; interface Evento { id: string; @@ -9,7 +8,6 @@ interface Evento { } export const CalendarioAtendimentos: React.FC = () => { - const { token } = useAuth(); const [eventos, setEventos] = useState([]); const [loading, setLoading] = useState(true); const [error, setError] = useState(null); diff --git a/src/components/dashboard/DashboardLayout.tsx b/src/components/dashboard/DashboardLayout.tsx index c88dd3f..fc5eedc 100644 --- a/src/components/dashboard/DashboardLayout.tsx +++ b/src/components/dashboard/DashboardLayout.tsx @@ -1,12 +1,10 @@ import React from 'react'; -import { useAuth } from '../../contexts/AuthContext'; import { WorkflowTarefas } from './WorkflowTarefas'; import { CalendarioAtendimentos } from './CalendarioAtendimentos'; import { BenchmarkingEscritorio } from './BenchmarkingEscritorio'; import { AtendimentosDia } from './AtendimentosDia'; export const DashboardLayout: React.FC = () => { - const { user } = useAuth(); return (
diff --git a/src/components/dashboard/WorkflowTarefas.tsx b/src/components/dashboard/WorkflowTarefas.tsx index 0e1d53f..55213fc 100644 --- a/src/components/dashboard/WorkflowTarefas.tsx +++ b/src/components/dashboard/WorkflowTarefas.tsx @@ -1,5 +1,4 @@ import React, { useEffect, useState } from 'react'; -import { useAuth } from '../../hooks/useAuth'; interface Tarefa { id: string; @@ -8,7 +7,6 @@ interface Tarefa { } export const WorkflowTarefas: React.FC = () => { - const { token } = useAuth(); const [tarefas, setTarefas] = useState([]); const [loading, setLoading] = useState(true); const [error, setError] = useState(null);