refactor(ticket): make repair review ticket-level

This commit is contained in:
2026-07-30 20:29:49 +05:30
parent 1cbad4074c
commit 58098af0fe
13 changed files with 25 additions and 56 deletions

View File

@@ -4,18 +4,15 @@ import { useRouter } from 'next/navigation';
import { ClipboardCheck } from 'lucide-react';
import { Button } from '@/components/ui/button';
import type { TicketDetail } from '@/types';
import { ROUTES } from '@/utils/routes';
export function OpenRepairReviewAction({ ticket }: { ticket: TicketDetail }) {
export function OpenRepairReviewAction({ ticketId }: { ticketId: string }) {
const router = useRouter();
return (
<Button
type="button"
onClick={() =>
router.push(ROUTES.TICKET_CLASS_REVIEW(ticket.id, ticket.defect_class))
}
onClick={() => router.push(ROUTES.TICKET_REVIEW(ticketId))}
>
<ClipboardCheck />
Review Repairs