Remove unused people query and Person import from TaskDetailPanel
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
fc2068be70
commit
957939a165
@ -1,5 +1,5 @@
|
||||
import { useState } from 'react';
|
||||
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
|
||||
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
||||
import { toast } from 'sonner';
|
||||
import { format, formatDistanceToNow, parseISO } from 'date-fns';
|
||||
import {
|
||||
@ -9,7 +9,7 @@ import {
|
||||
import axios from 'axios';
|
||||
import api, { getErrorMessage } from '@/lib/api';
|
||||
import { formatUpdatedAt } from '@/components/shared/utils';
|
||||
import type { ProjectTask, TaskComment, Person } from '@/types';
|
||||
import type { ProjectTask, TaskComment } from '@/types';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Checkbox } from '@/components/ui/checkbox';
|
||||
@ -94,13 +94,6 @@ export default function TaskDetailPanel({
|
||||
task ? buildEditState(task) : { title: '', status: 'pending', priority: 'none', due_date: todayLocal(), person_id: '', description: '' }
|
||||
);
|
||||
|
||||
const { data: people = [] } = useQuery({
|
||||
queryKey: ['people'],
|
||||
queryFn: async () => {
|
||||
const { data } = await api.get<Person[]>('/people');
|
||||
return data;
|
||||
},
|
||||
});
|
||||
|
||||
// --- Mutations ---
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user