dashboard: reimaginacao

Signed-off-by: Rodrigo B. de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
rodrigo committed 2025-07-15 19:28:40 -03:00
1 parent 3c00956cf4
commit 9c2df341ea
5 files changed
-10

No files matched your search

@@ -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<Atendimento[]>([]);
const [loading, setLoading] = useState(true);
const [error, setError] = useState<string | null>(null);
@@ -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<Benchmarking | null>(null);
const [loading, setLoading] = useState(true);
const [error, setError] = useState<string | null>(null);
@@ -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<Evento[]>([]);
const [loading, setLoading] = useState(true);
const [error, setError] = useState<string | null>(null);
@@ -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 (
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6 p-6">
@@ -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<Tarefa[]>([]);
const [loading, setLoading] = useState(true);
const [error, setError] = useState<string | null>(null);