feat(companies): Add filtering functionality to company list table
- Create CompanyListFilters component with form fields for name, email, phone, currency, and employee count - Integrate filter modal into CompaniesTable component with open/close state management - Update useCompanyListPresenter hook to handle filter form state and search parameters - Replace inline create button with ListHeader component for consistent UI patterns - Add support for URL-based query parameters to persist filter state - Implement form reset and filter clearing functionality - Add isMutating state tracking for loading indicators during filter searches - Update constants/enums to support currency filtering optionsfor
This commit is contained in:
@@ -49,3 +49,15 @@ export enum CustomerType {
|
||||
COMPANY = "company",
|
||||
GOVERNMENT = "government",
|
||||
}
|
||||
export const Currencies = [
|
||||
{ label: "USD", value: "USD" },
|
||||
{ label: "EUR", value: "EUR" },
|
||||
{ label: "GBP", value: "GBP" },
|
||||
{ label: "JPY", value: "JPY" },
|
||||
{ label: "CAD", value: "CAD" },
|
||||
{ label: "AUD", value: "AUD" },
|
||||
{ label: "CHF", value: "CHF" },
|
||||
{ label: "CNY", value: "CNY" },
|
||||
{ label: "INR", value: "INR" },
|
||||
{ label: "BRL", value: "BRL" },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user