dashboard: reimaginacao
Signed-off-by: Rodrigo B. de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
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 React, { useEffect, useState } from 'react';
|
||||||
import { useAuth } from '../../hooks/useAuth';
|
|
||||||
|
|
||||||
interface Atendimento {
|
interface Atendimento {
|
||||||
id: string;
|
id: string;
|
||||||
@@ -9,7 +8,6 @@ interface Atendimento {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const AtendimentosDia: React.FC = () => {
|
export const AtendimentosDia: React.FC = () => {
|
||||||
const { token } = useAuth();
|
|
||||||
const [atendimentos, setAtendimentos] = useState<Atendimento[]>([]);
|
const [atendimentos, setAtendimentos] = useState<Atendimento[]>([]);
|
||||||
const [loading, setLoading] = useState(true);
|
const [loading, setLoading] = useState(true);
|
||||||
const [error, setError] = useState<string | null>(null);
|
const [error, setError] = useState<string | null>(null);
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { useAuth } from '../../contexts/AuthContext';
|
|
||||||
|
|
||||||
interface Benchmarking {
|
interface Benchmarking {
|
||||||
ajuizados15dias: number;
|
ajuizados15dias: number;
|
||||||
@@ -7,7 +6,6 @@ interface Benchmarking {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const BenchmarkingEscritorio: React.FC = () => {
|
export const BenchmarkingEscritorio: React.FC = () => {
|
||||||
const { token } = useAuth();
|
|
||||||
const [benchmarking, setBenchmarking] = useState<Benchmarking | null>(null);
|
const [benchmarking, setBenchmarking] = useState<Benchmarking | null>(null);
|
||||||
const [loading, setLoading] = useState(true);
|
const [loading, setLoading] = useState(true);
|
||||||
const [error, setError] = useState<string | null>(null);
|
const [error, setError] = useState<string | null>(null);
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { useAuth } from '../../hooks/useAuth';
|
|
||||||
|
|
||||||
interface Evento {
|
interface Evento {
|
||||||
id: string;
|
id: string;
|
||||||
@@ -9,7 +8,6 @@ interface Evento {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const CalendarioAtendimentos: React.FC = () => {
|
export const CalendarioAtendimentos: React.FC = () => {
|
||||||
const { token } = useAuth();
|
|
||||||
const [eventos, setEventos] = useState<Evento[]>([]);
|
const [eventos, setEventos] = useState<Evento[]>([]);
|
||||||
const [loading, setLoading] = useState(true);
|
const [loading, setLoading] = useState(true);
|
||||||
const [error, setError] = useState<string | null>(null);
|
const [error, setError] = useState<string | null>(null);
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useAuth } from '../../contexts/AuthContext';
|
|
||||||
import { WorkflowTarefas } from './WorkflowTarefas';
|
import { WorkflowTarefas } from './WorkflowTarefas';
|
||||||
import { CalendarioAtendimentos } from './CalendarioAtendimentos';
|
import { CalendarioAtendimentos } from './CalendarioAtendimentos';
|
||||||
import { BenchmarkingEscritorio } from './BenchmarkingEscritorio';
|
import { BenchmarkingEscritorio } from './BenchmarkingEscritorio';
|
||||||
import { AtendimentosDia } from './AtendimentosDia';
|
import { AtendimentosDia } from './AtendimentosDia';
|
||||||
|
|
||||||
export const DashboardLayout: React.FC = () => {
|
export const DashboardLayout: React.FC = () => {
|
||||||
const { user } = useAuth();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6 p-6">
|
<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 React, { useEffect, useState } from 'react';
|
||||||
import { useAuth } from '../../hooks/useAuth';
|
|
||||||
|
|
||||||
interface Tarefa {
|
interface Tarefa {
|
||||||
id: string;
|
id: string;
|
||||||
@@ -8,7 +7,6 @@ interface Tarefa {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const WorkflowTarefas: React.FC = () => {
|
export const WorkflowTarefas: React.FC = () => {
|
||||||
const { token } = useAuth();
|
|
||||||
const [tarefas, setTarefas] = useState<Tarefa[]>([]);
|
const [tarefas, setTarefas] = useState<Tarefa[]>([]);
|
||||||
const [loading, setLoading] = useState(true);
|
const [loading, setLoading] = useState(true);
|
||||||
const [error, setError] = useState<string | null>(null);
|
const [error, setError] = useState<string | null>(null);
|
||||||
|
|||||||
Reference in new issue
Block a user