- Introduced getCustomers action and corresponding server method to fetch customer data with pagination and sorting. - Updated hooks to support infinite querying of customers, improving data handling in components. - Refactored ContactsList and related components to utilize the new customer fetching logic, enhancing user experience. - Adjusted filter labels in dropdowns for better clarity and user understanding.
10 lines
520 B
TypeScript
10 lines
520 B
TypeScript
import * as customers from './server/customers';
|
|
import { wrapClientAction } from '@/utils/actions';
|
|
|
|
export const addInvitedBy = wrapClientAction(customers.addInvitedBy);
|
|
export const getInvited = wrapClientAction(customers.getInvited);
|
|
export const getCustomer = wrapClientAction(customers.getCustomer);
|
|
export const getCustomers = wrapClientAction(customers.getCustomers);
|
|
export const getInvitedBy = wrapClientAction(customers.getInvitedBy);
|
|
export const updateCustomer = wrapClientAction(customers.updateCustomer);
|