updates
This commit is contained in:
@@ -6,19 +6,9 @@ import {
|
||||
CheckCircle2,
|
||||
XCircle,
|
||||
Plus,
|
||||
Filter,
|
||||
Search,
|
||||
Calendar,
|
||||
User,
|
||||
Building2,
|
||||
FileText,
|
||||
MessageSquare,
|
||||
TrendingUp,
|
||||
MoreVertical,
|
||||
Edit,
|
||||
Trash2,
|
||||
Play,
|
||||
Pause,
|
||||
} from 'lucide-react';
|
||||
import { toast } from 'react-toastify';
|
||||
import { Loading, EmptyState } from '../../components/common';
|
||||
@@ -68,8 +58,11 @@ const TaskManagementPage: React.FC = () => {
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
const { data: statistics, loading: statsLoading, execute: fetchStatistics } = useAsync<TaskStatistics>(
|
||||
() => taskService.getTaskStatistics().then(r => r.data),
|
||||
const { data: statistics, execute: fetchStatistics } = useAsync<TaskStatistics>(
|
||||
async () => {
|
||||
const r = await taskService.getTaskStatistics();
|
||||
return (r as any).data?.data || r.data;
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user