refactor(ticket): make details lot-based and remove class-detail flow
This commit is contained in:
@@ -14,7 +14,6 @@ import {
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { cn } from '@/lib/utils';
|
||||
import type {
|
||||
TicketDetail,
|
||||
TicketExtensionRequest,
|
||||
TicketExtensionRequestsResponse,
|
||||
} from '@/types';
|
||||
@@ -186,16 +185,16 @@ function ExtensionRequestDetails({
|
||||
}
|
||||
|
||||
export function TicketExtensionRequestPanel({
|
||||
ticket,
|
||||
ticketId,
|
||||
assignmentId,
|
||||
dueAt,
|
||||
}: {
|
||||
ticket: TicketDetail;
|
||||
ticketId: string;
|
||||
assignmentId: number;
|
||||
dueAt: string | null;
|
||||
}) {
|
||||
const extensionRequestQuery = useTicketExtensionRequestQuery(
|
||||
ticket.id,
|
||||
ticketId,
|
||||
assignmentId,
|
||||
);
|
||||
|
||||
@@ -234,7 +233,7 @@ export function TicketExtensionRequestPanel({
|
||||
if (!latestRequest) {
|
||||
return (
|
||||
<RequestExtensionForm
|
||||
ticket={ticket}
|
||||
ticketId={ticketId}
|
||||
assignmentId={assignmentId}
|
||||
currentDueAt={dueAt}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user