- Changed the terminology from "masters" to "invited" and "invitedBy" across the codebase for clarity and consistency. - Updated the `addContact` function to reflect the new naming convention. - Refactored API actions and server methods to support the new invited structure. - Adjusted components and hooks to utilize the updated invited data, enhancing user experience and simplifying logic.
9 lines
450 B
TypeScript
9 lines
450 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 getInvitedBy = wrapClientAction(customers.getInvitedBy);
|
|
export const updateCustomer = wrapClientAction(customers.updateCustomer);
|