feat(inquiries): Add change status functionality to inquiries
- Create ChangeStatusForm component with status, reason, and description fields - Add change status modal to inquiries table with form integration - Implement useChangeInquiryStatus hook integration in presenter - Add edit icon button to trigger status change modal for each inquiry - Update Status component to accept status prop for proper styling - Update FormFooter component to support form submission handling - Add isChangeStatusModalOpen state management to presenter - Update TInquiries type definitions to include change status credentials - Enhance inquiries list with status change workflow alongside existing delete functionality
This commit is contained in:
@@ -4,7 +4,7 @@ import { createApiResponseSchema } from "./Factory";
|
||||
const changeInquiryStatusCredentials = z.object({
|
||||
description: z.string(),
|
||||
reason: z.string(),
|
||||
status: z.enum(INQUIRY_STATUS),
|
||||
status: z.nativeEnum(INQUIRY_STATUS),
|
||||
});
|
||||
const inquiriesSchema = z.object({
|
||||
company_name: z.string(),
|
||||
|
||||
Reference in New Issue
Block a user