feat(inquiries): Add filtering functionality to inquiries list table

- Create new InquiriesListFilters component with search and status filter fields
- Integrate filter modal into inquiries table with form handling
- Add INQUIRY_STATUS enum with pending, reviewed, approved, and rejected statuses
- Implement URL-based query parameter management for filter persistence
- Add form state management using react-hook-form with watch and setValue utilities
- Connect filter search to useGetInquiries hook to fetch filtered results
- Support clearing individual filter fields and closing filter modal
This commit is contained in:
AmirReza Jamali
2025-11-25 12:40:30 +03:30
parent 6d4016af5e
commit a77bb6cccc
4 changed files with 157 additions and 2 deletions
+6
View File
@@ -61,3 +61,9 @@ export const Currencies = [
{ label: "INR", value: "INR" },
{ label: "BRL", value: "BRL" },
];
export enum INQUIRY_STATUS {
PENDING = "pending",
REVIEWED = "reviewed",
APPROVED = "approved",
REJECTED = "rejected",
}